-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appbar with tabs #1445
Comments
Yes you can with somethings like var styles = {
appBar: {
flexWrap: 'wrap',
},
tabs: {
width: '100%',
},
};
<AppBar title={xxxx} style={styles.appBar}>
<Tabs onChange={this.onChangeTabs} style={styles.tabs}>
<Tab label={xxxx} />
<Tab label={xxxx} />
<Tab label={xxxx} />
</Tabs>
</AppBar> |
Thanks Olivier I did have to use some extra styling for padding but it worked. Thanks. |
This is a hack waiting #773 to be addressed. |
Hi, thank you for this framework and the hack above! Without the styles from the hack it looks like this: Do you have any ideas? |
@shilch That looks like an issue with the flexboxes. Try playing with the flex styles. |
Guys put your tabs inside a title of AppBar try this |
Try like this const styles = {
paddingLeft: "20px"
};
const HeaderMenu = () => (
<div>
<span style={styles}>Blog</span>
<span style={styles}>Event</span>
<span style={styles}>Technology</span>
</div>
);
<AppBar title={<HeaderMenu/>} /> |
Hello, I am having difficulty getting the Appbar to wrap around with tabs, when the all of the tabs do not fit onto one line, this works automatically with strings but for tabs I'm not sure what to do. This is my current set up using tabs inside the app bar
|
Thanks for this amazing framework!
I'm trying to create an appbar with integrated tabs. Something like this: http://material-design.storage.googleapis.com/publish/material_v_4/material_ext_publish/0B6Okdz75tqQsOUdyb0FjQTJTdlk/components_tabs_usage_mobile3.png
Anyone has an idea on how to best achieve this?
Thanks!
The text was updated successfully, but these errors were encountered: