import PropTypes from 'prop-types'; import { clsm } from '../../utils'; const InputLabel = ({ label, htmlFor, variant }) => { if (!label) return; return ( ); }; InputLabel.defaultProps = { htmlFor: undefined, variant: 'vertical' }; InputLabel.propTypes = { label: PropTypes.string.isRequired, htmlFor: PropTypes.string, variant: PropTypes.oneOf(['vertical', 'horizontal']) }; export default InputLabel;