UNPKG

@rocketsofawesome/mirage

Version:

[Live Demo of the Pattern Library](https://rocketsofawesome.github.io/mirage/)

23 lines (19 loc) 512 B
import React from 'react' import PropTypes from 'prop-types' const BasePressIcon = ({className, children, box, ...props}) => { return ( <svg className={className} version='1.1' xmlns="http://www.w3.org/2000/svg" viewBox={box} onClick={props.onClick}> {children} </svg> ) } BasePressIcon.propTypes = { box: PropTypes.string, className: PropTypes.string, children: PropTypes.oneOfType([ PropTypes.array, PropTypes.object, PropTypes.string ]) } export default BasePressIcon