![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
genericons-neue-react
Advanced tools
A library to make it easy to use Genericons Neue within React. You only need to import the icons you use, so no extra overhead.
Here's an example on using within your React project.
$ npm install --save genericons-neue-react
import React from 'react';
import CloudUpload from 'genericons-neue-react/icons/cloud-upload';
const MyUploadButton = () => {
return (
<button>
<CloudUpload />
<span> Upload a new image </span>
</button>
)
}
You can also pass down any properties to the SVG, for example:
import React from 'react';
import CloudUpload from 'genericons-neue-react/icons/cloud-upload';
const MyUploadButton = () => {
return (
<button>
<CloudUpload fill="tomato" />
<span> Upload a new image </span>
</button>
)
}
The following info is for creating this package, if you just want to use the icons in your project, see Usage above.
The source SVG files are from automattic/genericons-neue repository, which gets installed as a dev dependcy.
The convert.js
script runs through the SVG files and creates React Components
(jsx), using the filename as the component name. Component names are CamelCase
so cloud-upload.svg
becomes CloudUpload
.
This build step can be run using: npm run build
and creates the components in
src
directory.
Next we convert the JSX components in src
directory to vanilla javascript
using babel and store the results in icons
directory.
FAQs
Genericons Neue icon set to be used with React
The npm package genericons-neue-react receives a total of 3 weekly downloads. As such, genericons-neue-react popularity was classified as not popular.
We found that genericons-neue-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.