diff --git a/Toolbar/Toolbar.jsx b/Toolbar/Toolbar.jsx index 37df5c0a5..0273a6aa8 100644 --- a/Toolbar/Toolbar.jsx +++ b/Toolbar/Toolbar.jsx @@ -61,10 +61,16 @@ class ToolbarSection extends MaterialComponent { } } +/** + * @prop menu = false + */ class ToolbarIcon extends MaterialComponent { - constructor() { + constructor(props) { super(); this.componentName = "toolbar__icon"; + if (props.menu) { + this.componentName += "--menu"; + } } materialDom(props) { return (