1.0.113 • Published 11 months ago

ethereal-icons v1.0.113

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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

1.0.113

11 months ago

1.0.112

12 months ago

1.0.111

12 months ago

1.0.110

12 months ago

1.0.109

12 months ago

1.0.108

12 months ago

1.0.107

12 months ago

1.0.106

12 months ago

1.0.105

12 months ago

1.0.104

12 months ago

1.0.103

12 months ago

1.0.102

12 months ago

1.0.101

12 months ago

1.0.100

12 months ago

1.0.99

12 months ago

1.0.98

12 months ago

1.0.97

12 months ago

1.0.96

12 months ago

1.0.95

12 months ago

1.0.94

12 months ago

1.0.93

12 months ago

1.0.92

1 year ago

1.0.91

1 year ago

1.0.90

1 year ago

1.0.89

1 year ago

1.0.88

1 year ago

1.0.87

1 year ago

1.0.86

1 year ago

1.0.85

1 year ago

1.0.77

1 year ago

1.0.76

1 year ago

1.0.75

1 year ago

1.0.74

1 year ago

1.0.73

1 year ago

1.0.72

1 year ago

1.0.71

1 year ago

1.0.70

1 year ago

1.0.69

1 year ago

1.0.68

1 year ago

1.0.67

1 year ago

1.0.66

1 year ago

1.0.65

1 year ago

1.0.64

1 year ago

1.0.63

1 year ago

1.0.62

1 year ago

1.0.61

1 year ago

1.0.60

1 year ago

1.0.59

1 year ago

1.0.58

1 year ago

1.0.57

1 year ago

1.0.56

1 year ago

1.0.55

1 year ago

1.0.54

1 year ago

1.0.53

1 year ago

1.0.52

1 year ago

1.0.51

1 year ago

1.0.50

1 year ago

1.0.49

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.40

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago