# genericons-neue-react **Repository Path**: mirrors_Automattic/genericons-neue-react ## Basic Information - **Project Name**: genericons-neue-react - **Description**: React Components for using icons from Genericons Neue - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-07-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Genericons Neue for React 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. ### Usage Here's an example on using within your React project. 1. First install the package ```bash $ npm install --save genericons-neue-react ``` 2. Using inside a Component ```js import React from 'react'; import CloudUpload from 'genericons-neue-react/icons/cloud-upload'; const MyUploadButton = () => { return ( ) } ``` Example You can also pass down any properties to the SVG, for example: ```js import React from 'react'; import CloudUpload from 'genericons-neue-react/icons/cloud-upload'; const MyUploadButton = () => { return ( ) } ``` Example with Fill ### Building this Package 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.