Dock App Bar to top of window in react material ui
In React material ui, how do you make app bar fixed so that it stays fixed while the rest of the page scrolls? Just add a position: fixed !important; css (inline or with external css) to your AppBar component. The !important is needed if you use external css to force overriding the style defined in material-ui. Don't forget to set margin-top to your content because it will get pushed to the top. Don't know if this feature is just new but you don't need the code above. Just add a position="fixed" attribute to your <AppBar /> return ( <div className={classes.root}> <AppBar position="fixed">