Description
svelte-hero-icons provides the complete Heroicons set, optimized for Svelte. It is based on the Heroicons set from the refactoringui project, and the README links that repository for the full icon list. You install the package as a devDependency and import the icons as components. Outline is the default style, and you switch to the solid version with a solid attribute. The README lists solid, mini and micro as the options that the solid attribute selects from. The package is fully typed, which gives a better editor experience. It works out of the box with SvelteKit, and the README says no configuration is needed there. If you run into problems, it suggests an addition to vite.config.js. Icons are server-side rendered, so they show without JavaScript on the client. The README includes a usage example and a short example of using the types. It also points to @steeze-ui/icons as a successor that supports more icon packs and frameworks, including React, Vue, Lit and Solid, and it notes that the project now lives under an organization focused on Svelte UI tools. The package suits Svelte and SvelteKit developers who want Heroicons in their interface.…
Highlights
- Complete Heroicons set for Svelte
- Outline by default, solid with an attribute
- Fully typed for editor support
- Works with SvelteKit without configuration
- Server-side rendered icons
Ratings & Reviews
No ratings yet
Be the first to rate svelte-hero-icons.
People also visit
@icons-pack/svelte-simple-icons
This package provides the Simple Icons packaged as a set of Svelte components
svelte-hero-icons FAQ
What is svelte-hero-icons?
A Svelte package with the complete Heroicons set, optimized for Svelte and SvelteKit.
How do I install it?
Install it as a devDependency with npm, following the README example.
How do I use the solid icons?
Add the solid attribute to the icon. The default is the outline version.
Does it need any configuration?
Not with SvelteKit. The README gives an optional vite.config.js addition in case you have problems.
Is there a newer option?
The README points to @steeze-ui/icons as a successor that supports more icon packs and frameworks.
What are the best svelte-hero-icons alternatives?
Popular alternatives to svelte-hero-icons include @icons-pack/svelte-simple-icons, flowbite-svelte-icons and @jis3r/icons. See all svelte-hero-icons alternatives










