0.4.0 • Published 4 months ago

svg2svelte v0.4.0

Weekly downloads
6
License
MIT
Repository
github
Last release
4 months ago

svg2svelte

Tool to convert SVG to Svelte component.

Usage

Command line

npx svg2svelte icon.svg Icon.svelte

Library

const svg2svelte = require('svg2svelte');
await svg2svelte('icon.svg', 'Icon.svelte');

Component Props

<Icon width="10" height="10" fill="#fff" class="icon" style="background: #fff" />

All props are optional.

if neither width nor height is provided, height will be set to 1em.

License

MIT

0.4.0

4 months ago

0.3.6

11 months ago

0.3.5

12 months ago

0.3.7

11 months ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago