2016-07-30 4 views
10

왼쪽 아이콘없이 앱 막대 구성 요소를 사용해야합니다.IconElementLeft없이 App 막대 구성 요소를 설정하는 방법?

iconElementLeft 속성을 무시하려했으나 작동하지 않고 아이콘이 아직 나타납니다.

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

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

export default AppBar; 

왼쪽 아이콘을 제거 할 수있는 방법이 있습니까?

답변

25

세트 showMenuIconButton부터 false.

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

jsfiddle

관련 문제