@papit/icon
v0.1.3
Published
Renders SVG icons either by referencing a <symbol> in an existing spritesheet or by fetching an SVG from a URL. If the spritesheet is not yet present in the DOM, it fetches the SVG and injects it into the document body for reuse via symbol references.
Downloads
495
Maintainers
Readme
@papit/icon
Renders SVG icons either by referencing a in an existing spritesheet or by fetching an SVG from a URL. If the spritesheet is not yet present in the DOM, it fetches the SVG and injects it into the document body for reuse via symbol references.
installation
npm install @papit/iconto use in html
<script type="module" defer>
import "@papit/icon";
</script>
<pap-icon></pap-icon>Contributing
Contributions are welcome! Please follow the development guidelines above and ensure all tests pass before submitting a pull request.
License
Licensed under the @Papit License 1.0 - Copyright (c) 2024 Henry Pap (@onkelhoy)
Key points:
- ✅ Free to use in commercial projects
- ✅ Free to modify and distribute
- ✅ Attribution required
- ❌ Cannot resell the component itself as a standalone product
See the LICENSE file for full details.
Related Components
- @papit/web-component: Core utilities, decorators, and base component class
Support
For issues, questions, or contributions, please visit the GitHub repository.
