Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit f6da361

Browse files
author
Matt Goo
authored
fix(top-app-bar): allow react elements in title (#376)
1 parent ff06164 commit f6da361

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/top-app-bar/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,9 @@ TopAppBar.propTypes = {
228228
short: PropTypes.bool,
229229
shortCollapsed: PropTypes.bool,
230230
style: PropTypes.object,
231-
title: PropTypes.string,
231+
title: PropTypes.oneOfType([
232+
PropTypes.string, PropTypes.element,
233+
]),
232234
};
233235

234236
TopAppBar.defaultProps = {

0 commit comments

Comments
 (0)