UNPKG

react-feather

Version:
63 lines (58 loc) 1.19 kB
import React from 'react'; import PropTypes from 'prop-types'; const Speaker = props => { const { color, size, ...otherProps } = props; return ( <svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} viewBox="0 0 24 24" {...otherProps} > <rect x="4" y="2" width="16" height="20" rx="2" ry="2" fill="none" stroke={color} strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" /> <circle cx="12" cy="14" r="4" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" /> <line x1="12" y1="6" x2="12" y2="6" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" /> </svg> ); }; Speaker.propTypes = { color: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), }; Speaker.defaultProps = { color: 'currentColor', size: '24', }; export default Speaker;