@devigner-ui/icons-solid: every icon as a Solid component. The artwork is
rendered from the React package at build time, so the two cannot drift.
npm install @devigner-ui/icons-solidsolid-js 1.6 or newer is a peer dependency. The package is plain
JavaScript with no JSX inside, so there is nothing to add to your compiler
config, and it renders on the server in SolidStart.
import { IconAdd, IconShoppingCart } from "@devigner-ui/icons-solid";
<IconAdd class="size-6" />
<IconShoppingCart variant="bulk" class="size-6 text-violet-600" />Every icon is its own module, so a bundler keeps only what you import.
| Prop | Type | Default | What it does |
|---|---|---|---|
variant |
"outline" | "twotone" | "bold" | "bulk" | "broken" |
"outline" |
Which drawing to render |
strokeWidth |
string | number |
1.5 |
Line weight of outline, twotone and broken |
Both are reactive. Everything else (class, style, id, onClick,
the aria attributes) lands on the <svg>, and icons paint with
currentColor, so size and colour come from CSS.
An icon renders aria-hidden="true" by default, because an icon beside its
own label would be read out twice. Name it and it becomes an image:
<IconAdd aria-label="Add item" />