1.0.5 • Published 5 years ago

binary-common-icons v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Binary Common Icons

This is a package that provide binary common icons.

Installation

npm install binary-common-icons

Usage

You can import 2 types of an icons: Icon or SVG. It depends on your usage.

SVGIcon provide a svg file that will not pure component and will re render. IconIcon provide in a wrapped pure component that will not re render,

import { IconFRXAUDCAD } from 'binary-common-icons/build/Icons/Underlying/ic-FRXAUDCAD';
import { SVGFRXAUDCAD } from 'binary-common-icons/build/Icons/Underlying/ic-FRXAUDCAD';

<IconFRXAUDCAD />
<SVGFRXAUDCAD />

It is better to handle these in parent component (For example Use onClick on parent component) but also we can use it in package component.

category as {string}

className as { string }

classNamePath as { string }

classNameRect as { string }

is_disabled as { bool }

onClick as { func }

type as { string }

Also we can use classnames package:

import classNames from 'classnames';

const icon_className = classNames(
    'advanced-simple-toggle__icon',
    'select-arrow',
)
<IconFRXAUDCAD className={icon_className} />
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago