🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

react-ionicons

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-ionicons

A React SVG ionicon component

4.2.1
latest
npm
Version published
Weekly downloads
3.8K
-10.1%
Maintainers
1
Weekly downloads
 
Created
Source

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' }}

FAQs

Package last updated on 13 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts