UNPKG

react-jam-ui

Version:

React JAM UI components

31 lines (28 loc) 984 B
import React from 'react' import classNames from 'classnames' export default class IconDownload extends React.Component { constructor(){ super(); this.state = { }; } render() { const { size, className, ...rest } = this.props; const wh = size || '1em' const icon = `<svg xmlns="http://www.w3.org/2000/svg" width="${wh}" height="${wh}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 17v3a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-3"></path><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="2" x2="12" y2="16"></line></svg>` const classes = classNames( 'icon', 'icon-download', className ); return <i className={ classes } dangerouslySetInnerHTML={{__html: icon }} { ...rest } />; } }