1.1.44 • Published 3 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
3 years ago
1.1.38
3 years ago
1.1.39
3 years ago
1.1.41
3 years ago
1.1.44
3 years ago
1.1.43
3 years ago
1.1.42
3 years ago
1.1.37
3 years ago
1.1.36
3 years ago
1.1.35
3 years ago
1.1.34
3 years ago
1.1.33
3 years ago
1.1.32
3 years ago
1.1.31
3 years ago
1.1.3
3 years ago
1.1.23
3 years ago
1.1.22
3 years ago
1.1.21
3 years ago
1.1.2
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.63
3 years ago
1.0.62
3 years ago
1.0.61
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.42
3 years ago
1.0.41
3 years ago
1.0.4
3 years ago
1.0.11
3 years ago
1.0.31
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago