1.1.44 • Published 2 years ago
vuivui-icons v1.1.44
vuivui-icons
VuiVui - Icons component
Vuivui Icon Component :
Installation :
via NPM:
npm i vuivui-icons
via YARN:
yarn add vuivui-icons
Usage :
//index.js
import App from "./App";
import ReactDOM from "react-dom";
import React from "react";
import { iconSheet } from "vuivui-icons";
ReactDOM.render(
<React.StrictMode>
<div>
{iconSheet}
<App />
</div>
</React.StrictMode>,
document.getElementById("root")
);
import {Icon, IconEnum} from "vuivui-icons";
<Icon name={IconEnum.CaretRight} />
<Icon
name={IconEnum.CaretRight}
size={64}
color={'#F05A94'}
fill = "red"
strokeWidth={1}
/>
API References:
Property | Description | Type | Default | Required |
---|---|---|---|---|
name | Name of icon | IconEnum | ✅ | |
color | Color of icon (Color's name or #HEX), 'primary' value is for #F05A94 , 'secondary' value is for #009ADA | string | #000000 | |
size | Size of icon as pixel | number | 32px | |
className | As same as className in JSX | string | ||
fill | SVG fill color | string | "none" | |
strokeWidth | value of strokeWidth as pixel | number | 2px | |
onClick | Set the handler to handle click event | (event) => void | ||
onKeyPress | Set the handler to handle key press event | (event) => void | ||
styleIcon | Inline-styles as for React components | { key: string : React.CSSProperties } |
1.1.4
2 years ago
1.1.38
2 years ago
1.1.39
2 years ago
1.1.41
2 years ago
1.1.44
2 years ago
1.1.43
2 years ago
1.1.42
2 years ago
1.1.37
2 years ago
1.1.36
2 years ago
1.1.35
2 years ago
1.1.34
2 years ago
1.1.33
2 years ago
1.1.32
2 years ago
1.1.31
2 years ago
1.1.3
2 years ago
1.1.23
2 years ago
1.1.22
2 years ago
1.1.21
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.63
2 years ago
1.0.62
2 years ago
1.0.61
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.42
2 years ago
1.0.41
2 years ago
1.0.4
2 years ago
1.0.11
2 years ago
1.0.31
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago