반응형

 

material UI에서는 disabled 속성을 주면 됨

  • <Button disabled>
  • <Checkbox disabled>
  • <Switch disabled>
  • <Slider diabled>
  • ...

div를 포함한 하위 component를 모두 막고 싶은 경우

  • </div style={this.props.disable?{color:'#777777', pointerevents: 'none'}:{}}>

 

 

반응형

+ Recent posts