UNPKG

bootstrap-4-react

Version:
18 lines (13 loc) 454 B
import React, { Component } from 'react'; import { JS } from 'fsts'; import { stack, domStack } from '../../utilities'; class Select extends Component { render() { const { htmlDisabled } = this.props; const p = JS.lessProps(this.props, 'htmlDisabled'); return htmlDisabled ? <select {...p} disabled>{this.props.children}</select> : <select {...p}>{this.props.children}</select> } } export default stack(Select, domStack);