How to use the @material/mwc-base/base-element.classMap function in @material/mwc-base

To help you get started, we’ve selected a few @material/mwc-base examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github material-components / material-components-web-components / packages / top-app-bar / src / mwc-top-app-bar-base-base.ts View on Github external
protected render() {
    return html`
      <header class="mdc-top-app-bar ${classMap(this.barClasses)}">
      <div class="mdc-top-app-bar__row">
        <section id="navigation" class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start">
          
          <span class="mdc-top-app-bar__title"></span>
        </section>
        <section role="toolbar" id="actions" class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end">
          
        </section>
      </div>
    </header>
    <div class="${classMap(this.contentClasses)}">
      
    </div>
    `;
  }
github material-components / material-components-web-components / packages / top-app-bar / src / mwc-top-app-bar-base-base.ts View on Github external
protected render() {
    return html`
      <header class="mdc-top-app-bar ${classMap(this.barClasses)}">
      <div class="mdc-top-app-bar__row">
        <section id="navigation" class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start">
          
          <span class="mdc-top-app-bar__title"></span>
        </section>
        <section role="toolbar" id="actions" class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end">
          
        </section>
      </div>
    </header>
    <div class="${classMap(this.contentClasses)}">
      
    </div>
    `;
  }