{"id":24989975,"url":"https://github.com/yacodes/react-share-icons","last_synced_at":"2025-06-22T21:36:52.572Z","repository":{"id":57344528,"uuid":"53857668","full_name":"yacodes/react-share-icons","owner":"yacodes","description":":large_blue_diamond: Vector share icons as react-components","archived":false,"fork":false,"pushed_at":"2019-12-10T19:59:48.000Z","size":31,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T00:51:22.070Z","etag":null,"topics":["icons","react","social-buttons"],"latest_commit_sha":null,"homepage":"","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/yacodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-03-14T13:18:55.000Z","updated_at":"2025-01-27T02:25:14.000Z","dependencies_parsed_at":"2022-09-11T09:01:07.720Z","dependency_job_id":null,"html_url":"https://github.com/yacodes/react-share-icons","commit_stats":null,"previous_names":["canvaskisa/react-share-icons"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yacodes/react-share-icons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yacodes%2Freact-share-icons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yacodes%2Freact-share-icons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yacodes%2Freact-share-icons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yacodes%2Freact-share-icons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yacodes","download_url":"https://codeload.github.com/yacodes/react-share-icons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yacodes%2Freact-share-icons/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261373553,"owners_count":23148917,"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":["icons","react","social-buttons"],"created_at":"2025-02-04T13:04:11.926Z","updated_at":"2025-06-22T21:36:47.545Z","avatar_url":"https://github.com/yacodes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Facebook](https://rawgit.com/canvaskisa/react-share-icons/master/src/Facebook/index.svg)\n![Dribbble](https://rawgit.com/canvaskisa/react-share-icons/master/src/Dribbble/index.svg)\n![Instagram](https://rawgit.com/canvaskisa/react-share-icons/master/src/Instagram/index.svg)\n![Odnoklassniki](https://rawgit.com/canvaskisa/react-share-icons/master/src/Odnoklassniki/index.svg)\n![Periscope](https://rawgit.com/canvaskisa/react-share-icons/master/src/Periscope/index.svg)\n![Twitter](https://rawgit.com/canvaskisa/react-share-icons/master/src/Twitter/index.svg)\n![Vkontakte](https://rawgit.com/canvaskisa/react-share-icons/master/src/Vkontakte/index.svg)\n![Youtube](https://rawgit.com/canvaskisa/react-share-icons/master/src/Youtube/index.svg)\n![Telegram](https://rawgit.com/canvaskisa/react-share-icons/master/src/Telegram/index.svg)\n![Google](https://rawgit.com/canvaskisa/react-share-icons/master/src/Google/index.svg)\n![Whatsapp](https://rawgit.com/canvaskisa/react-share-icons/master/src/Whatsapp/index.svg)\n\n***\n\n[![NPM version](http://img.shields.io/npm/v/react-share-icons.svg)](https://www.npmjs.org/package/react-share-icons)\n[![Travis Build Status](https://travis-ci.org/canvaskisa/react-share-icons.svg)](https://travis-ci.org/canvaskisa/react-share-icons)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n\n\u003e Vector share icons as react-components\n\n## Installation\n```js\n$ npm install --save react-share-icons\n```\n\n## Usage\n##### Icon: ReactElement\n```js\nimport React, {Component} from 'react';\nimport Icon, {Telegram} from 'react-share-icons';\nimport Instagram from 'react-share-icons/lib/Instagram';\n\nclass Shares extends Component {\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cdiv\u003e\n          \u003cIcon type=\"Facebook\" className=\"shares-facebook\"/\u003e\n          \u003cIcon type=\"Twitter\" className=\"shares-twitter\"/\u003e\n          \u003cInstagram className=\"shares-instagram\"/\u003e\n        \u003c/div\u003e\n\n        \u003ca href=\"https://telegram.org/\"\u003e\n          \u003cTelegram className=\"shares-telegram\"/\u003e\n        \u003c/a\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default Shares;\n```\nBy default `react-shares-icons` exports `Icon` component, which accepts `type` prop. `type` props is a string – name of the icon you wanna get. You can also import icons like this: `import {Facebook} from 'react-share-icons`.\n\nIf you don't want to use all of the icons, you can import them directly like this: `import Facebook from 'react-share-icons/lib/Facebook'`, it will import only Facebook icon component, and nothing else!\n\nAll available icons:\n- Facebook\n- Dribbble\n- Instagram\n- Odnoklassniki\n- Periscope\n- Twitter\n- Vkontakte\n- Youtube\n- Telegram\n- Google\n- Whatsapp\n\n##### Colors.css\nYou can find [colors.css](colors.css) file in the root of the project, it provides css variables with social colors for you, so you can use [sheetify](https://github.com/sheetify/sheetify) or [cssnext](https://github.com/cssnext/cssnext):\n```css\n@import 'react-share-icons/colors';\n\n.shares-facebook {\n  color: var(--rsi-facebook);\n}\n```\n\n## License\nMIT © [Aleksandr Yakunichev](https://github.com/canvaskisa)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyacodes%2Freact-share-icons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyacodes%2Freact-share-icons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyacodes%2Freact-share-icons/lists"}