Sebastian Lorenzo Sebastian Lorenzo - 1 month ago 11
React JSX Question

How to set App bar component without iconElementLeft?

I need to use app bar component but without left icon.

I tried to ignore the iconElementLeft property but this way does not work and
the icon appears yet.

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

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

export default AppBar;


There is a way to remove the icon left?

QoP QoP
Answer

Set showMenuIconButton to false.

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

jsfiddle

Comments