1.0.3 • Published 5 years ago

svg-icon-paths v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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;
		}
	}
}

Available paths:

docs/index.html

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago