How to use the @material/top-app-bar/index.MDCTopAppBar.attachTo function in @material/top-app-bar

To help you get started, we’ve selected a few @material/top-app-bar 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-catalog / src / HeaderBar.js View on Github external
this.props.scrollTarget((scrollTarget) => {
      const topAppBar = MDCTopAppBar.attachTo(this.refs.demoTopAppBar);
      topAppBar.setScrollTarget(scrollTarget);
    });
  }