-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Can't customize style for "title" in AppBar #1547
Comments
@mhahn if you see L121 of So you could create your title as a React node, style it however you like, and then pass it as a prop. Here's a small example (using JSX syntax): //in your render method
let myStyle = {
backgroundColor: "red",
};
let fancyTitle = (
<span style={myStyle}>
My Title Text
</span>
);
...
<AppBar
title={fancyTitle}
iconClassNameRight="muidocs-icon-navigation-expand-more" /> |
This is almost a duplicate of #1645. |
Thanks @oliviertassinari! |
Oh I missed that, thanks!
|
Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 16.12.0 to 16.13.0. - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v16.13.0/packages/react) Signed-off-by: dependabot-preview[bot] <[email protected]>
No description provided.
The text was updated successfully, but these errors were encountered: