@ajentik/doo-iconik-vanilla
v1.0.0
Published
Vanilla JavaScript adapter (Web Component + createIcon) for doo-iconik icons
Downloads
61
Maintainers
Readme
@ajentik/doo-iconik-vanilla
Vanilla JS / Web Components: 595 hand-drawn doodle-style SVG icons for Vanilla JS.
Part of doo-iconik.
Install
npm i @ajentik/doo-iconik-vanillaUsage
Web Component
import { register } from '@ajentik/doo-iconik-vanilla';
// Register the <doo-iconik> custom element
register();<doo-iconik name="heart" size="lg"></doo-iconik>
<doo-iconik name="star" size="md" spin></doo-iconik>Programmatic API
import { createIcon } from '@ajentik/doo-iconik-vanilla';
const icon = createIcon('heart', { size: 'lg', spin: true });
document.body.appendChild(icon);Props
All components accept: name, size, spin, pulse, bounce, flipHorizontal, flipVertical, variant, animation.
See the main documentation for full prop details.
License
MIT
