Git Product home page Git Product logo

svg-iconset's Introduction

ReactJS implementation of Open Iconic SVG Icon set

This repository is a SVG file format to ReactJS component builder based on Open Iconic SVG icon set.

Run the development environment

  • Clone the repo
  • npm i
  • npm start

Building the current icon set

  • Run npm run build.
  • A ReactJS Component will be available inside components folder.

Adding/Replacing current icon set

  • Add/Delete svg files inside svg folder
  • Run npm run build.
  • A ReactJS Component will be available inside components folder.

Icon set usage

Each ReactJS SVG component allows the following params:

  • size : A number without units is expected. Default value 32
  • fillColor : A string in any CSS color format ('red', '#f00', 'rgba(255,0,0,.5)') to set fill SVG property.
  • strokeColor : A string in any CSS color format ('red', '#f00', 'rgba(255,0,0,.5)') to set stroke SVG property.
  • strokeWidth : A number including decimal values to set stroke-width SVG property.
  • svgClass : A string to specify a custom class for layout purposes.

Installation

  • install npm package: npm i -S @s-ui/react-icons
  • import needed icons:
import { Accountlogin, Accountlogout } from '@s-ui/react-icons'

const MyComponent = (props) => {
  return (
    <Accountlogin
        size={32}
        fillColor='#b00b55'
        strokeColor='black'
        strokeWidth={0}
        svgClass='sui-SVGicon'
    />
  )
}

Some available icons

  • Accountlogin
  • Accountlogout
  • Actionundo
  • Actionredo
  • Alignleft
  • Aligncenter
  • Alignright
  • Aperture
  • Arrowbottom [...]

Checkout demo page for full list

Current set of supported SVG attributes:

  • alignment-baseline
  • clip-path
  • clip-rule
  • fill-opacity
  • fill-rule
  • overline-position
  • overline-thickness
  • shape-rendering
  • strikethrough-position
  • strikethrough-thickness
  • stroke-dasharray
  • stroke-dashoffset
  • stroke-linecap
  • stroke-linejoin
  • stroke-miterlimit
  • stroke-opacity
  • stroke-width

svg-iconset's People

Contributors

betobe avatar carlosvillu avatar danivm avatar davecarter avatar jcger avatar kikoruiz avatar midudev avatar miduga avatar oscar-raig avatar ronaldo-mh avatar serto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.