Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
react-fontawesome
Advanced tools
A React component for the font-awesome icon library.
npm install --save react-fontawesome
var React = require('react');
var FontAwesome = require('react-fontawesome');
React.render(<FontAwesome name='rocket' />, document.body);
className
s, styles and other props (all additional props are passed directly to the component).Note: This component does not include any of the Font Awesome CSS or fonts, so you'll need to make sure to include those on your end somehow, either by adding them to your build process or linking to CDN versions.
var React = require('react');
var FontAwesome = require('react-fontawesome');
var MyComponent = React.createClass({
render: function () {
return (
<FontAwesome
className='super-crazy-colors'
name='rocket'
size='2x'
spin
style={{ textShadow: '0 1px 0 rgba(0, 0, 0, 0.1)' }}
/>
);
}
});
See the API docs for full documentation.
Pull requests welcome!
Please use the .editorconfig
, .eslintrc
configurations in your editor to ensure proper formatting.
Run the test suite with npm test
and linting with npm run lint
. Make sure tests are passing and that you write tests for new features and document changes to the API with updates to the JSDocs.
v1.0.0
We are production ready! 😬🤘🎉
FAQs
A React component for the font-awesome icon library.
The npm package react-fontawesome receives a total of 33,862 weekly downloads. As such, react-fontawesome popularity was classified as popular.
We found that react-fontawesome 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.