npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gale-icons

v1.2.3

Published

React icon components created from SVG files

Downloads

17

Readme

Galeicons 🍃

React icon components created from SVG files.

Overview

Galeicons is a lightweight React library that offers a collection of icon components crafted from SVG files. It provides a simple and efficient way to breeze icons into your React projects.

Features

  • Simple and Lightweight

  • Clean SVG Attributes The SVG attributes are designed to be clean and easy to work with, making customization straightforward.

  • TypeScript Compatibility Galeicons is compatible with TypeScript, providing auto-suggestions and intelligent code completion for a smoother development experience.

  • Initial Inspiration from Heroicons The initial set of icons is based on the popular icon library Heroicons. You can explore Heroicons here.

  • Future Expansions: Galeicons is dedicated to continuous growth and will be expanding its icon collection in future updates.

Installation

Install gale-icons from npm:

npm install gale-icons

Basic Usage

Using Galeicons in your React components is a breeze. Import the icon component and include it in your JSX/TSX. Customize the icon's appearance by applying CSS classes or passing SVG element attributes.

Default

Here's a basic example of how to use Galeicons:

If no custom attributes are passed, you'll get a default 24x24px icon with the color based on your project's current color

import React from 'react'
import { GaleOIconHeartHi } from 'gale-icons'

function App() {
  return (
    <div>
      <h1>Welcome to Galeicons!</h1>

      <GaleOIconHeartHi />
    </div>
  )
}

export default App

🎉 Now you have a beautiful heart icon in your React project.

Customizing Icons with SVG Attributes

import React from 'react'
import { GaleOIconHeartHi } from 'gale-icons'

function App() {
  return (
    <div>
      <h1>Welcome to Galeicons!</h1>

      <GaleOIconHeartHi width='32' height='32' stroke='yellow' />
    </div>
  )
}

export default App

Pass SVG attributes like "width" and "height" to customize the size. The "stroke" color attribute will override class color, but width and height won't.

Customizing Icons with Classes

import React from 'react'
import { GaleOIconHeartHi } from 'gale-icons'

function App() {
  return (
    <div>
      <h1>Welcome to Galeicons!</h1>

      <GaleOIconHeartHi className='h-8 w-8 text-blue-900' />
      {/* Use CSS classes to change the style. Here are Tailwind CSS classes for an 8x8 size (32px) and dark blue color. */}
    </div>
  )
}

export default App

Galeicons is created with ❤️ by Maeve Du.