1.0.3 • Published 5 years ago
svg-icon-paths v1.0.3
svg-icon-paths
Collection of SVG paths for icons.
Getting started
$ npm install svg-icon-paths
somewhere.jsx
import edit from 'svg-icon-paths/edit'
export default function MyComponent () {
return (
<button><svg viewBox={edit.viewBox}><path d={edit}/></svg></button>
)
}
somewhere.css
.toolbar {
display: flex;
& button {
width: 2em;
height: 2em;
padding: 0;
margin-right: 0.2em;
&:last-child {
margin-right: 0;
}
}
}