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

ethereal-icons

v1.0.113

Published

Ethereal Icons is a React icon library that provides a collection of customizable and scalable SVG icons for modern web applications.

Downloads

2,867

Readme

Ethereal Icons

Ethereal Icons is a React icon library that provides a collection of customizable and scalable SVG icons for modern web applications. Enhance your UI with beautiful, consistent, and highly customizable icons.

Installation

Install the library using npm or yarn:

# Using npm
npm install ethereal-icons@latest

# Using yarn
yarn add ethereal-icons@latest

Usage

Importing Icons

You can import individual icons directly from the library:

import React from "react";
import { User, Apple } from "ethereal-icons";

const App = () => (
  <div>
    <User size={48} color="blue" className="custom-class" />
    <Apple size={48} color1="red" color2="yellow" className="custom-class" />
  </div>
);

export default App;

Universal Icon Component

The library also provides a universal icon component that allows you to dynamically render any icon by name:

import React from "react";
import { Ethereal } from "ethereal-icons";

const App = () => (
  <div>
    <Ethereal name="User" size={48} color="blue" className="custom-class" />
    <Ethereal
      name="Apple"
      size={48}
      color1="red"
      color2="yellow"
      className="custom-class"
    />
  </div>
);

export default App;

Using Types

Ethereal Icons also provides TypeScript support to ensure type safety and autocompletion in your code editor. The IconName type includes all the available icon names, allowing you to use them with confidence.

import React from "react";
import { Ethereal, IconName } from "ethereal-icons";

const icons: IconName[] = ["User", "Apple", "AnotherIcon"];

const App = () => (
  <div>
    {icons.map((icon) => (
      <Ethereal key={icon} name={icon} size={48} className="custom-class" />
    ))}
  </div>
);

export default App;

Props

  • size: Sets the width and height of the icon. Defaults to 24.
  • color: The primary color of the icon. Defaults to the current color.
  • strokeWidth: Sets the stroke width for icons with stroke properties. Defaults to 2.
  • color1: The first fill color for icons with two colors. Defaults to the original color of the SVG.
  • color2: The second fill color for icons with two colors. Defaults to the original color of the SVG.
  • className: Adds a custom class to the SVG element.

Issues and Suggestions

If you encounter any issues or have suggestions for improvements, please reach out on Twitter: @Chema12071

License

This project is licensed under the ISC License. See the LICENSE file for more details.


Author: José Campillo
Website: ethereal.dev
Twitter: @Chema12071
GitHub: josecampillo