{"id":13637391,"url":"https://github.com/PolymerElements/paper-toolbar","last_synced_at":"2025-04-19T08:34:06.151Z","repository":{"id":30576644,"uuid":"34131646","full_name":"PolymerElements/paper-toolbar","owner":"PolymerElements","description":"A Material Design toolbar/appbar","archived":false,"fork":false,"pushed_at":"2023-10-16T14:02:53.000Z","size":401,"stargazers_count":40,"open_issues_count":22,"forks_count":41,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-11-01T15:38:31.957Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.webcomponents.org/element/PolymerElements/paper-toolbar","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PolymerElements.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-04-17T17:56:06.000Z","updated_at":"2022-04-29T13:07:08.000Z","dependencies_parsed_at":"2024-01-14T11:07:13.973Z","dependency_job_id":"4b75b012-52ad-4826-b6b0-0235c69e57b4","html_url":"https://github.com/PolymerElements/paper-toolbar","commit_stats":{"total_commits":222,"total_committers":37,"mean_commits":6.0,"dds":0.8153153153153153,"last_synced_commit":"23cf0bc078fd538ea98486337a986933e56c6f17"},"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Fpaper-toolbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Fpaper-toolbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Fpaper-toolbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PolymerElements%2Fpaper-toolbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PolymerElements","download_url":"https://codeload.github.com/PolymerElements/paper-toolbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223795266,"owners_count":17204137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T00:01:16.648Z","updated_at":"2024-11-09T06:31:17.545Z","avatar_url":"https://github.com/PolymerElements.png","language":"JavaScript","funding_links":[],"categories":["CSS and JS"],"sub_categories":["Components"],"readme":"[![Published on NPM](https://img.shields.io/npm/v/@polymer/paper-toolbar.svg)](https://www.npmjs.com/package/@polymer/paper-toolbar)\n[![Build status](https://travis-ci.org/PolymerElements/paper-toolbar.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-toolbar)\n[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://webcomponents.org/element/@polymer/paper-toolbar)\n\n## \u0026lt;paper-toolbar\u0026gt;\n\n**This element has been deprecated in favor of [app-layout](https://github.com/PolymerElements/app-layout).**\n\n`paper-toolbar` is a horizontal bar containing items that can be used for\nlabel, navigation, search and actions.  The items placed inside the\n`paper-toolbar` are projected into a `class=\"horizontal center layout\"` container inside of\n`paper-toolbar`'s Shadow DOM.  You can use flex attributes to control the items'\nsizing.\n\nExample:\n\n```html\n\u003cpaper-toolbar\u003e\n  \u003cpaper-icon-button slot=\"top\" icon=\"menu\" on-tap=\"menuAction\"\u003e\u003c/paper-icon-button\u003e\n  \u003cdiv slot=\"top\" class=\"title\"\u003eTitle\u003c/div\u003e\n  \u003cpaper-icon-button slot=\"top\" icon=\"more-vert\" on-tap=\"moreAction\"\u003e\u003c/paper-icon-button\u003e\n\u003c/paper-toolbar\u003e\n```\n\n`paper-toolbar` has a standard height, but can made be taller by setting `tall`\nclass on the `paper-toolbar`. This will make the toolbar 3x the normal height.\n\n```html\n\u003cpaper-toolbar class=\"tall\"\u003e\n  \u003cpaper-icon-button slot=\"top\" icon=\"menu\"\u003e\u003c/paper-icon-button\u003e\n\u003c/paper-toolbar\u003e\n```\n\nApply `medium-tall` class to make the toolbar medium tall.  This will make the\ntoolbar 2x the normal height.\n\n```html\n\u003cpaper-toolbar class=\"medium-tall\"\u003e\n  \u003cpaper-icon-button slot=\"top\" icon=\"menu\"\u003e\u003c/paper-icon-button\u003e\n\u003c/paper-toolbar\u003e\n```\n\nWhen `tall`, items can pin to either the top (default), middle or bottom. Use\n`middle` slot for middle content and `bottom` slot for bottom content.\n\n```html\n\u003cpaper-toolbar class=\"tall\"\u003e\n  \u003cpaper-icon-button slot=\"top\" icon=\"menu\"\u003e\u003c/paper-icon-button\u003e\n  \u003cdiv slot=\"middle\" class=\"title\"\u003eMiddle Title\u003c/div\u003e\n  \u003cdiv slot=\"bottom\" class=\"title\"\u003eBottom Title\u003c/div\u003e\n\u003c/paper-toolbar\u003e\n```\n\nFor `medium-tall` toolbar, the middle and bottom contents overlap and are\npinned to the bottom. But `middleJustify` and `bottomJustify` attributes are\nstill honored separately.\n\nTo make an element completely fit at the bottom of the toolbar, use `fit` along\nwith `bottom`.\n\n```html\n\u003cpaper-toolbar class=\"tall\"\u003e\n  \u003cdiv id=\"progressBar\" slot=\"bottom\" class=\"fit\"\u003e\u003c/div\u003e\n\u003c/paper-toolbar\u003e\n```\n\nWhen inside a `paper-header-panel` element with `mode=\"waterfall-tall\"`, \nthe class `.animate` is toggled to animate the height change in the toolbar. \n\n### Styling\n\nThe following custom properties and mixins are available for styling:\n\nCustom property | Description | Default\n----------------|-------------|----------\n`--paper-toolbar-title`      | Mixin applied to the title of the toolbar | `{}`\n`--paper-toolbar-background` | Toolbar background color     | `--primary-color`\n`--paper-toolbar-color`      | Toolbar foreground color     | `--dark-theme-text-color`\n`--paper-toolbar-height`     | Custom height for toolbar    | `64px`\n`--paper-toolbar-sm-height`  | Custom height for small screen toolbar | `56px`\n`--paper-toolbar`            | Mixin applied to the toolbar | `{}`\n`--paper-toolbar-content`    | Mixin applied to the content section of the toolbar | `{}`\n`--paper-toolbar-medium`     | Mixin applied to medium height toolbar | `{}`\n`--paper-toolbar-tall`       | Mixin applied to tall height toolbar | `{}`\n`--paper-toolbar-transition` | Transition applied to the `.animate` class | `height 0.18s ease-in`\n\n### Accessibility\n\n`\u003cpaper-toolbar\u003e` has `role=\"toolbar\"` by default. Any elements with the class `title` will\nbe used as the label of the toolbar via `aria-labelledby`.\n\nSee: [Documentation](https://www.webcomponents.org/element/@polymer/paper-toolbar),\n  [Demo](https://www.webcomponents.org/element/@polymer/paper-toolbar/demo/demo/index.html).\n\n## Usage\n\n### Installation\n```\nnpm install --save @polymer/paper-toolbar\n```\n\n### In an html file\n```html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript type=\"module\"\u003e\n      import '@polymer/paper-toolbar/paper-toolbar.js';\n    \u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cpaper-toolbar\u003e\n      \u003cdiv slot=\"top\" class=\"title\"\u003eTitle\u003c/div\u003e\n    \u003c/paper-toolbar\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n### In a Polymer 3 element\n```js\nimport {PolymerElement, html} from '@polymer/polymer';\nimport '@polymer/paper-toolbar/paper-toolbar.js';\n\nclass SampleElement extends PolymerElement {\n  static get template() {\n    return html`\n      \u003cpaper-toolbar\u003e\n        \u003cdiv slot=\"top\" class=\"title\"\u003eTitle\u003c/div\u003e\n      \u003c/paper-toolbar\u003e\n    `;\n  }\n}\ncustomElements.define('sample-element', SampleElement);\n```\n\n## Contributing\nIf you want to send a PR to this element, here are\nthe instructions for running the tests and demo locally:\n\n### Installation\n```sh\ngit clone https://github.com/PolymerElements/paper-toolbar\ncd paper-toolbar\nnpm install\nnpm install -g polymer-cli\n```\n\n### Running the demo locally\n```sh\npolymer serve --npm\nopen http://127.0.0.1:\u003cport\u003e/demo/\n```\n\n### Running the tests\n```sh\npolymer test --npm\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPolymerElements%2Fpaper-toolbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPolymerElements%2Fpaper-toolbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPolymerElements%2Fpaper-toolbar/lists"}