1.0.2 • Published 4 years ago

parcel-plugin-lit-svg v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

parcel-plugin-lit-svg

Turns SVG imports into an inlined lit-html svg template suitable for including in other lit-html or lit-element templates.

Usage

lit-html must be included as a dependency of your project (transitively through lit-element, or directly).

npm install parcel-plugin-lit-svg
import {html} from 'lit-html'
import MyCoolVector from './my-cool-vector.svg'

export default html`
  <div class="vector-container">
    ${MyCoolVector}
  </div>
`

License

MIT