Created
June 27, 2018 23:25
-
-
Save kennethkoontz/52d1015ae4337eccd5527c042274e9bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import '../../../assets/icons.svg'; | |
import './icons.css'; | |
const defaultDimensions = '32'; | |
const Icon = props => ( | |
<svg | |
width={props.width || defaultDimensions} | |
height={props.height || defaultDimensions} | |
className={`icon icon-${props.name}`} | |
> | |
<use xlinkHref={`#icon-${props.name}`} /> | |
</svg> | |
); | |
export default Icon; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment