
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
A module for Nuxt 4 that allows you to use your own SVG icons quickly and enjoyably.
nuxt-icons to modules, nuxt.config.ts:export default defineNuxtConfig({
modules: ['nuxt-icons']
})
icons folder in assets: assets/iconsicons folder<nuxt-icon name="">, where name is the name of your svg icon from the folderIf you need to use the original color from the svg file (for example, if your icon has defs) you need to use the filled attribute:
<nuxt-icon name="mySuperIcon" filled />
If you would like to use some more complicated folder arrangement you will have to use paths from /icons
If you have a svg icon in nested directories such as:
📁icons
└📁admin
⠀⠀└ badge.svg
└📁user
⠀⠀└ badge.svg
then the icons's name will be based on its own path directory and filename. Therefore, the icon's name will be:
<nuxt-icon name="admin/badge"> and <nuxt-icon name="user/badge">
The styles that have been created for the icons look as follows:
width: 1em;
height: 1em;
margin-bottom: 0.125em;
vertical-align: middle;
You can easily change these styles using regular CSS for example in your index.vue file:
<style>
.nuxt-icon svg{
margin-bottom: 0;
}
</style>
You can download icons in SVG format and put them in the /icons folder, or use another module that supports this natively: nuxt-icon
The module retrieves all svg files from the assets/icons folder, overwrites the height and width from them to make them scalable, and using the <nuxt-icon> component allows them to be used. <nuxt-icon> injects the SVG code directly into <span>.
color, font-size instead of fill,width,height ✅filled attribute ✅npm run dev:prepare to generate type stubs.npm run dev to start playground in development mode.A big thank you to @Diizzayy for his invaluable help in developing the project
FAQs
A Nuxt 4 module for easy SVG icons
The npm package nuxt-icons receives a total of 9,807 weekly downloads. As such, nuxt-icons popularity was classified as popular.
We found that nuxt-icons demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.