{"id":22403333,"url":"https://github.com/springload/react-svg-icon","last_synced_at":"2025-07-31T16:31:54.166Z","repository":{"id":57345963,"uuid":"41401062","full_name":"springload/react-svg-icon","owner":"springload","description":"Accessible SVG icon component for React","archived":false,"fork":false,"pushed_at":"2017-06-14T19:47:02.000Z","size":144,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-11-07T03:09:18.476Z","etag":null,"topics":["react","react-component","svg","svg-icons"],"latest_commit_sha":null,"homepage":"https://springload.github.io/react-svg-icon/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/springload.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-26T03:00:55.000Z","updated_at":"2020-01-09T08:21:18.000Z","dependencies_parsed_at":"2022-09-17T22:13:33.343Z","dependency_job_id":null,"html_url":"https://github.com/springload/react-svg-icon","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springload%2Freact-svg-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springload%2Freact-svg-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springload%2Freact-svg-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springload%2Freact-svg-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/springload","download_url":"https://codeload.github.com/springload/react-svg-icon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228267806,"owners_count":17893841,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","react-component","svg","svg-icons"],"created_at":"2024-12-05T09:16:49.317Z","updated_at":"2024-12-05T09:16:50.856Z","avatar_url":"https://github.com/springload.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [react-svg-icon](https://springload.github.io/react-svg-icon/) [![npm](https://img.shields.io/npm/v/react-svg-icon.svg?style=flat-square)](https://www.npmjs.com/package/react-svg-icon) [![Build Status](https://travis-ci.org/springload/react-svg-icon.svg?branch=master)](https://travis-ci.org/springload/react-svg-icon) [![Coverage Status](https://coveralls.io/repos/github/springload/react-svg-icon/badge.svg)](https://coveralls.io/github/springload/react-svg-icon)\n\n\u003e Accessible SVG icon component for React.\n\nCheck out the [online demo](https://springload.github.io/react-svg-icon/)!\n\n## Usage\n\n```sh\nnpm install --save react-svg-icon\n```\n\n```jsx\nimport Icon from 'react-svg-icon';\n\n\u003cIcon name=\"i-rocket\" /\u003e\n\u003cIcon name=\"i-rocket\" className=\"i--red\" /\u003e\n// Optionally, use a title to add an accessible label\n\u003cIcon name=\"i-rocket\" title=\"Start the trip\" /\u003e\n```\n\n### Inline SVG assets\n\nCreate your SVG sprite and inline them at the start of you HTML document. There's a nice tutorial on how to do this on [CSS-Tricks](https://css-tricks.com/svg-sprites-use-better-icon-fonts/).\n\n## Development\n\n### Install\n\n\n\u003e Clone the project on your computer, and install [Node](https://nodejs.org). This project also uses [nvm](https://github.com/creationix/nvm).\n\n```sh\nnvm install\n# Then, install all project dependencies.\nnpm install\n# Install the git hooks.\n./.githooks/deploy\n```\n\n### Working on the project\n\n\u003e Everything mentioned in the installation process should already be done.\n\n```sh\n# Make sure you use the right node version.\nnvm use\n# Start the server and the development tools.\nnpm run start\n# Runs linting.\nnpm run lint\n# Runs tests.\nnpm run test\n# View other available commands with:\nnpm run\n```\n\n### Releases\n\n- Make a new branch for the release of the new version.\n- Update the [CHANGELOG](CHANGELOG.md).\n- Update the version number in `package.json`, following semver.\n- Make a PR and squash merge it.\n- Back on master with the PR merged, follow the instructions below.\n\n```sh\nnpm run dist\n# Use irish-pub to check the package content. Install w/ npm install -g first.\nirish-pub\nnpm publish\n```\n\n- Finally, go to GitHub and create a release and a tag for the new version.\n- Done!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringload%2Freact-svg-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringload%2Freact-svg-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringload%2Freact-svg-icon/lists"}