UNPKG

@appearhere/bloom

Version:

Appear Here's pattern library and styleguide

24 lines (20 loc) 419 B
import PropTypes from 'prop-types'; import React from 'react'; const Option = ({ selected, value, children, ...rest }) => ( <option selected={ selected } value={ value } { ...rest } > { children } </option> ); Option.propTypes = { selected: PropTypes.bool, children: PropTypes.node, value: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, ]), }; export default Option;