Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
react-icofont
Advanced tools
A React wrapper for the icofont project https://icofont.com/. It renders a <i>
tag with icofont classes (like how you'd usually use it). No extra configuration required.
React and Webpack. Obviously.
Install it with npm:
npm install --save react-icofont
Include in your component:
import Icofont from 'react-icofont';
Use it in JSX:
<Icofont icon="bell"/>
Icofont supports Rotate, flip and size classes. In this component you can pass those values with props:
<Icofont icon="key" rotate="270" flip="h" size="10"/>
Supported values for the props are given below :
Rotate:
Currently rotate angles 90
,180
,270
values are supported. The rotate angle values are in degree.
Flip:
horizontal
or h
and vertical
or v
. You can also do, flip="h v"
or flip="horizontal vertical"
for flipping both horizontally and vertically.
Size:
Size can have value from 1
to 10
. For example, setting size="2"
will make the icon twice as big.
You can read more about these here: https://icofont.com/examples
All standard props like style
, onClick
are supported. if you use className
prop. The provided classes will be appended with the icofont
classes.
This project, like the icofont project, is released under the MIT License
FAQs
React wrapper for icofont project (https://icofont.com/)
We found that react-icofont demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.