Skip to content
PluginStats

vite-plugin-solid-svg weekly downloads statistics

By jfgodoy · npm · Vite plugins

Import SVG files as Solid.js Components

View on npm Fresh · Oct 17, 2026

vite-plugin-solid-svg has 7,100 recorded weekly downloads on npm, a decrease of 61.7% over the past 30 days.

It ranks #1002 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -62.3%.

PluginStats has 542 daily observations since Apr 24, 2025; the latest is from Oct 17, 2026.

Weekly downloads
7,100
Official API · Oct 17, 2026
7-day growth
-42.3%
-5.2K weekly downloads
30-day growth
-61.7%
-11.4K weekly downloads
90-day growth
-62.3%
-11.8K weekly downloads
Rank
#1002
Among tracked npm listings

About vite-plugin-solid-svg

vite-plugin-solid-svg

Extend Vite with ability to use SVG files as Solid.js components.

Features:

• SVGO optimization • Hot Module Replacement support • Support for ?component-solid query string • SSR

Currently supported Vite version:

4 or above

Install

Setup

typescript

vite adds its own definition for "*.svg" and defines them as string. As far as I know this cannot be overridden. So we have two options: put our types before those of vite, or use imports with querystring.

If you are using defaultAsComponent which is the default, you need to put our types definition before vite in the tsconfig.

if you change to defaultAsComponent=false, you should use a different type definition that only identifies an svg import as a solid component when it matches the querystring. And in this case, put it before "vite/client"

Options

If you need to configure svgo, you can also create a config file svgo.config.js in the project's root, following the instructions at svgo docs. The svgo.svgoConfig has precedence over the file.

Usage

Import as a Solid.js component:

To import all svg inside a folder, use import.meta.glob('@/svgs/*.svg', { as: 'component-solid' }). See Vite docs for more details.

Why

In a Solidjs + vite project, you can easily add an svg image using:

However the fill color of the image cannot be overriden. Importing the svg as a component solves this and allows css styles to cascade into the svg content. Furthermore there may be situations where you'll need to ensure the image has been fully loaded, for example, before starting an animation. This module gives you a component that you can control when it's loaded.

Credits

This plugin is based on the work from the following projects:

• https://github.com/visualfanatic/vite-svg • https://github.com/cobbcheng/vite-plugin-svgstring

Description from the npm listing.

  • vite-plugin
  • svg
  • svgo
  • vite
  • solid
  • solidjs

Where vite-plugin-solid-svg sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 51, #2 (overall #1002)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 9, #10 (overall #170)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-solid-svg weekly downloads on npm, last 90 days: 7,100 weekly downloads as of Oct 17, 2026, -62.3% over 90 days.vite-plugin-solid-svgWeekly downloads on npm · Last 90 days7,100downloads / week-62.3% over 90 days05K10K15K20K25KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
vite-plugin-solid-svg weekly downloads on npm, last 90 days: 7,100 weekly downloads as of Oct 17, 2026, -62.3% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-solid-svg weekly downloads growth on npm: -42.3% over 7 days, -61.7% over 30 days, -62.3% over 90 days.vite-plugin-solid-svgWeekly downloads growth on npm7,100downloads / week now7-day growth-5,196 weekly downloads-42.3%30-day growth-11,433 weekly downloads-61.7%90-day growth-11,756 weekly downloads-62.3%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-solid-svg weekly downloads growth on npm: -42.3% over 7 days, -61.7% over 30 days, -62.3% over 90 days.
PNG SVG

Ranking history

vite-plugin-solid-svg npm ranking history: currently #1002 (by weekly downloads).vite-plugin-solid-svgnpm ranking · by weekly downloads · Last 90 days#1002current rank#300#400#500#600#700#800#900#1000#1100Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-solid-svg npm ranking history: currently #1002 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (542)
Recent weekly downloads observations for vite-plugin-solid-svg
Date (UTC)Weekly downloadsChange vs. previous
7,100-1.4K
8,503+333
8,170-2.9K
11,097-2.6K
13,6480
13,648+2.4K
11,259-1K
12,296-947
13,243-715
13,958-1.1K
15,086-2.2K
17,252-4.6K
21,845-3K
24,857—

Similar npm Vite plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-solid-svg. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.