0.0.21 • Published 1 year ago

@nghiavuive/svm-icon-react v0.0.21

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

SVM icon for React

Include all curved swm icons for React project. The resource belongs to Software Mansion S.A. and Daniel

preview

Installation

It is very easy to start installing the library

npm i @nghiavuive/svm-icon-react

Usage

We can use it with a few of tsx codes below

import { Icon, IconSet } from "@nghiavuive/svm-icon-react";
export default function App() {
  return (
    <div className="w-20 h-20">
      <Icon
        icon={IconSet.Alarm}
        stroke="red"
        strokeWidth="2px"
        className="w-10 h-10"
      />
    </div>
  );
}

or

import { Air } from "@nghiavuive/svm-icon-react";
export default function App() {
  return (
    <div className="w-20 h-20">
      <Air
        stroke="red"
        strokeWidth="2px"
        className="w-10 h-10"
      />
    </div>
  );
}

Props

All props are the same with svg tag exclude icon. You will feel free when using the tag because it simply is an svg tag. We have an IconSet enum stored all svg images, and you need to import before using an Icon tag.

Resource link

0.0.20

1 year ago

0.0.21

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago