1.2.3 ā€¢ Published 8 months ago

gale-icons v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.

1.2.3

8 months ago

1.2.2

8 months ago

1.2.1

8 months ago

1.1.9

8 months ago

1.1.8

8 months ago

1.1.7

8 months ago

1.1.6

8 months ago

1.1.5

8 months ago

1.1.4

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago