Material-ui: Fixed AppBar

Created on 19 Aug 2016  ·  1Comment  ·  Source: mui-org/material-ui

Could the AppBar incorporate a prop to fix it to the top?

Most helpful comment

@PolGuixe Use this style:

const styles = { example: { position: "fixed", top: 0, }, };
and incorporate in your AppBar like this:

<AppBar title="Example" style={styles.example} />

>All comments

@PolGuixe Use this style:

const styles = { example: { position: "fixed", top: 0, }, };
and incorporate in your AppBar like this:

<AppBar title="Example" style={styles.example} />

Was this page helpful?
0 / 5 - 0 ratings

Related issues

finaiized picture finaiized  ·  3Comments

TimoRuetten picture TimoRuetten  ·  3Comments

iamzhouyi picture iamzhouyi  ·  3Comments

revskill10 picture revskill10  ·  3Comments

activatedgeek picture activatedgeek  ·  3Comments