Skip to content

Commit

Permalink
fix(top-app-bar): allow react elements in title (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo authored Nov 5, 2018
1 parent ff06164 commit f6da361
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/top-app-bar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ TopAppBar.propTypes = {
short: PropTypes.bool,
shortCollapsed: PropTypes.bool,
style: PropTypes.object,
title: PropTypes.string,
title: PropTypes.oneOfType([
PropTypes.string, PropTypes.element,
]),
};

TopAppBar.defaultProps = {
Expand Down

0 comments on commit f6da361

Please sign in to comment.