DocsStartInstall
Install
Three ways in. Pick one; they mix well.
#From npm
npm install fidgiconsThe package has no dependencies. It holds the stylesheet, the 104 free icons as SVG files and as JS modules, components for React, Vue and Svelte, the sound module, the CLI and the MCP server.
| Import | What you get |
|---|---|
fidgicons/css | The one stylesheet, 8.4 KB. Import it once. |
fidgicons/icons/<name>.js | One free icon as an SVG string. |
fidgicons/icons/<name>.svg | The same icon as a file. |
fidgicons/react, /vue, /svelte | The Fidgicon component. |
fidgicons/sound | The optional sound module, 6.8 KB compressed. |
fidgicons/index.json | Every icon in the library: id, name, category, what its value means, its motion and its sound. |
import 'fidgicons/css';
import heart from 'fidgicons/icons/heart.js'; // one icon, as an SVG string
document.querySelector('#like').innerHTML = heart;#From the library
Open any icon in the library and copy its SVG. Free icons copy straight away; the rest copy once your licence key is on that browser. Add the stylesheet once with the Copy stylesheet button on any icon, or with the CLI.
#With the CLI
Add only the icons you use, as files in your own project. Nothing to install first: npx fetches the CLI.
npx fidgicons add bell heart cart --out src/icons --js
npx fidgicons css > src/fidgicons.cssNode 18 or later runs the CLI and the MCP server. The icons and the stylesheet need no Node at all. See the CLI page for every command.
Something missing or unclear?Write to usRequest an icon