@solar-icons/solid
v2.7.0
Published
Solar Icons for SolidJS
Maintainers
Readme
@solar-icons/solid
SolidJS 1 components for Solar Icons. This package provides 9,576 SVG icons across 6 styles (Bold, Broken, Linear, Outline, Bold Duotone, Line Duotone), optimized for Solid 1.6+ applications.
Which package should I use?
| Your app uses | Install |
| ------------- | ------------------------------------------------------------------------------ |
| Solid 2 | @solar-icons/solid-v2 |
| Solid 1 | @solar-icons/solid |
The v2 in @solar-icons/solid-v2 is the Solid major version, not the Solar Icons major version. Import paths, component names, props, CSS variables, and CSS classes match across both packages.
Features
- 9,576 SVGs: 1,596 unique icons in 6 styles. Designed by 480 Design.
- Tree-shakeable: Import only the icons you use.
- Global configuration: Set defaults for size, color, and stroke width using
<SolarProvider>. - Customizable: Override size, color, and stroke width per icon via props or CSS variables.
- Duotone support: Secondary color controls for
bold-duotoneandline-duotonestyles. - TypeScript: Typed components and props.
Install
npm install @solar-icons/solidUsage
import { HomeIcon, LoginIcon } from '@solar-icons/solid/linear'
function App() {
return (
<div>
<HomeIcon />
<LoginIcon color="#3b82f6" size={32} strokeWidth={2} />
</div>
)
}Global Configuration (Provider)
Wrap your application in <SolarProvider> to set default properties:
import { SolarProvider } from '@solar-icons/solid'
import { HomeIcon } from '@solar-icons/solid/linear'
function App() {
return (
<SolarProvider size={24} color="currentColor" strokeWidth={1.5}>
<HomeIcon />
</SolarProvider>
)
}Documentation
For installation guides, API reference, and a searchable icon catalog, visit the Solid Documentation.
License
MIT License. Icons by 480 Design (CC BY 4.0).
