Sha256: 890afc2055c7de26e47048c1fd60f8c65017052f9bd97fd5ee005e303625cf40
Contents?: true
Size: 798 Bytes
Versions: 6
Compression:
Stored size: 798 Bytes
Contents
/* @flow */ import React from 'react' import Icon from '../Icon/Icon.jsx' import classnames from 'classnames' type Props = { className:string, iconName:string, size:string, color: string, iconColor:string, name:string, } export default class CircleButton extends React.Component<Props> { static defaultProps = { color:"", size:"", textColor:"", iconName:"", className:"circlebutton", } props: Props render() { const { size, color, iconName, iconColor, className, } = this.props return ( <div> <button className={`${classnames(color,iconColor,className)} circlebutton-${size} border-0 shadow-default`}> <Icon name={iconName}/> </button> </div> ) } }
Version data entries
6 entries across 6 versions & 2 rubygems