Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set App bar component without iconElementLeft?

I need to use app bar component without left icon.

I tried to ignore the iconElementLeft property but it doesn't work and the icon appears yet.

import React from 'react';
import AppBar from 'material-ui/AppBar';

const AppBar = () => (
  <AppBar
    title="Title"
  />
);

export default AppBar;

Is there a way to remove the left icon?

like image 518
slorenzo Avatar asked Jul 30 '16 23:07

slorenzo


1 Answers

Set showMenuIconButton to false.

<AppBar
    title="Title"
    showMenuIconButton={false}/>

jsfiddle

like image 200
QoP Avatar answered Nov 16 '22 06:11

QoP