4.2.1 • Published 11 months ago

react-ionicons v4.2.1

Weekly downloads
7,928
License
ISC
Repository
-
Last release
11 months ago

A React Ionicon Component

Beautiful doc in https://react-ionicons.netlify.app/

Install

$ npm install --save react-ionicons

or

$ yarn add react-ionicons

Usage

import React from 'react'
import { render } from 'react-dom'
import { LogoNodejs } from 'react-ionicons'

<LogoNodejs
  color={'#00000'}
  rotate
  height="250px"
  width="250px"
  onClick={() => alert('Hi!')}
/>

Browserify

browserify is supported, but you have to install browserify-css@^0.12.0 manually.

Features

  • SVG Icons.
  • Simple API.
  • Animations.
  • Customizable.
  • Support to Create React App.
  • Typescript support.

API:

ParamTypeDescriptionExample
heightStringIcon size. Allow all units (px, em, %, pt...).height="22px"
widthStringIcon size. Allow all units (px, em, %, pt...).width="22px"
colorStringIcon color. Allow string (blue, red, cyan...), rgb, rgba and hexadecimal colors.color="#C9C9C9"
titleStringTooltip for the icontitle="this is a tooltip"
cssClassesStringPass a string with cssClassescssClasses="myButton"
rotateBooleanApply rotate animation to iconrotate={true}
shakeBooleanApply shake animation to iconshake={true}
beatBooleanApply beat animation to iconbeat={true}
onClickFunctionPass a function to execute onClickonClick={() => console.log('Hi!')}
styleObjectPass a style objectstyle={{ verticalAlign: 'middle' }}
4.2.1

11 months ago

4.2.0

3 years ago

4.0.8

3 years ago

4.0.7

3 years ago

4.0.6

3 years ago

4.1.0

3 years ago

4.0.5

3 years ago

4.0.4

3 years ago

4.0.3

3 years ago

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.1.4

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.1.6

6 years ago

2.1.5

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.5.9

7 years ago

1.5.8

7 years ago

1.5.7

7 years ago

1.4.7

7 years ago

1.4.6

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.0.1

7 years ago