Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

solid-icons

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solid-icons

Modern solution for use icons on SolidJS

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4K
increased by16.87%
Maintainers
1
Weekly downloads
 
Created
Source

Solid Icons

Modern solution for use icons on SolidJS

Icons Explorer | Example



✨ Features

  • 16 Icon packs totally ready to use.
  • Compatible with Solid Start static generation and SSR.
  • Tree shakeable: What you take is what you get.
  • Customizable - receive props to extend their usefulness.
  • Reactivity, take advantage of SolidJS to react to changes in props.
  • Just import and declare in your JSX to work out-the-box
  • First class TypeScript support

📦 Installation

Yarn

yarn add solid-icons

NPM

npm install solid-icons --save

Usage

import { SiJavascript } from "solid-icons/si";

<SiJavascript size={24} color="#2c4f7c" />;

🔋 Included icons pack

Icon LibraryLicenseVersion
Ant Design IconsMIT4.1.0
Bootstrap IconsMIT1.7.2
BoxIconsCC BY 4.0 License2.1.1
FeatherMIT4.28.0
Font AwesomeCC BY 4.0 License5.15.4
HeroiconsMIT1.0.3
IcoMoon FreeCC BY 4.0 License1.0.0
IoniconsMIT5.5.2
Remix IconApache License Version 2.02.5.0
Simple IconsCC0 1.0 Universal6.7.0
TypiconsCC BY-SA 3.02.1.2
VS Code IconsCC BY 4.00.0.27
Weather IconsSIL OFL 1.12.0.12
css.ggMIT2.0.0
Tabler IconsMIT1.70.0
Github OcticonsMIT17.3.0

⚙️ Configuration

solid-icons components receive props like any SVG, you also have a few custom ones.

import { SiJavascript } from "solid-icons/si";

<SiJavascript size={24} color="#2c4f7c" class="custom-icon" title="a11y" />;
KeyDefaultNotes
colorcurrentColor (inherit)
size1em
classundefined
titleundefinedA icon title a11y

💻 Development

requirements:

node ^16.14.0

Basic build

You can locally clone this repository:

$ git clone https://github.com/x64Bits/solid-icons
$ cd solid-icons
$ yarn
$ yarn build

Build dev mode

If you did the above steps and want to build while listening if the files change you can run:

$ yarn dev

Supported arguments

Isolate a single library, this allows you to avoid recompiling the entire library and thus optimize the result of a single one:

$ yarn dev --isolate="ai"

This command is used to build the files destined for web, if you want to change the path, in src/build/constants.ts you can modify the output of the files:

$ yarn dev --web

📝 Licence

MIT

  • Icons are taken from the other projects so please check each project licences accordingly.

Keywords

FAQs

Package last updated on 26 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc