Nuxt SVG Transformer
Transform SVG to inject dynamically into Vue component, type included.
- Vue component ready with
SvgIcon
- Hot reloading when SVG updated
- Reactivity option
- Seperated index SVG files
- No import needed, SVG directly injected
- Options to add or clear
style
andclass
global attributes - SVG typed, validate by
name
prop (typescript
required) - Nuxt 3 support
Bash
$npm install nuxt-svg-transformer --save-dev
Click to copy