{"id":20447608,"url":"https://github.com/acrool/acrool-react-iconsvg","last_synced_at":"2025-07-23T02:35:53.675Z","repository":{"id":47606620,"uuid":"506919200","full_name":"acrool/acrool-react-iconsvg","owner":"acrool","description":"react icon component by svg symbols","archived":false,"fork":false,"pushed_at":"2025-05-14T08:54:09.000Z","size":1686,"stargazers_count":13,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-05T23:37:14.068Z","etag":null,"topics":["icon","icon-symbols","react"],"latest_commit_sha":null,"homepage":"https://acrool-react-iconsvg.pages.dev/","language":"TypeScript","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/acrool.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-06-24T07:31:11.000Z","updated_at":"2025-06-03T04:31:03.000Z","dependencies_parsed_at":"2023-11-22T13:30:37.213Z","dependency_job_id":"429512c5-287f-4070-a5b8-4c2e7503e900","html_url":"https://github.com/acrool/acrool-react-iconsvg","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"93668be0aa6e8a89f495702665b8bf57d378aa6b"},"previous_names":["imagine10255/bear-react-iconsvg"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/acrool/acrool-react-iconsvg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-iconsvg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-iconsvg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-iconsvg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-iconsvg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acrool","download_url":"https://codeload.github.com/acrool/acrool-react-iconsvg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-iconsvg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266606947,"owners_count":23955372,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["icon","icon-symbols","react"],"created_at":"2024-11-15T10:28:03.891Z","updated_at":"2025-07-23T02:35:53.664Z","avatar_url":"https://github.com/acrool.png","language":"TypeScript","funding_links":[],"categories":["React underlying structure"],"sub_categories":[],"readme":"# Acrool React IconSvg\n\n\u003ca href=\"https://acrool-react-iconsvg.pages.dev/\" title=\"Acrool React IconSvg - IconSymbols Of React Component Design\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/acrool/acrool-react-iconsvg/main/example/public/og.webp\" alt=\"Acrool React IconSvg Logo\"/\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n   This is the element using svg symbol as icon in React\n\u003c/p\u003e\n\n\n\n\u003cdiv align=\"center\"\u003e\n\n[![NPM](https://img.shields.io/npm/v/@acrool/react-iconsvg.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-iconsvg)\n[![npm](https://img.shields.io/bundlejs/size/@acrool/react-iconsvg?style=for-the-badge)](https://github.com/acrool/react-iconsvg/blob/main/LICENSE)\n[![npm](https://img.shields.io/npm/l/@acrool/react-iconsvg?style=for-the-badge)](https://github.com/acrool/acrool-react-iconsvg/blob/main/LICENSE)\n\n[![npm downloads](https://img.shields.io/npm/dm/@acrool/react-iconsvg.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-iconsvg)\n[![npm](https://img.shields.io/npm/dt/@acrool/react-iconsvg.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-iconsvg)\n\n\u003c/div\u003e\n\n\n`^4.1.4 support react \u003e=18.0.0 \u003c20.0.0`\n\n\n## Features\n\n- Through the React component method, you can easily use the icon and change the size and color by specifying the Icon code.\n- Use Icon Symbols to support multi-color Icon\n- Support Nextjs 14+\n- Secondary packaging is required\n\n\n\n## Install\n\n```bash\nyarn add @acrool/react-iconsvg\n```\n\n## Usage\n\n***step1.*** add in your main.tsx\n\n```ts\nimport '@acrool/react-iconsvg/dist/index.css';\n```\n\n***step2.*** copy custom icon component` in your project, copy [IconComponent](./example/src/library/acrool-react-icon/Icon.tsx) files.\n\n***step3.*** add Svg Symbols file `src/library/acrool-react-icon`\n\n***step4.*** in your App.tsx\n\n```tsx\nimport {SvgSymbol} from '@/library/acrool-react-icon';\n\nconst App = () =\u003e {\n    return \u003cdiv\u003e\n        \u003cMainContent/\u003e\n\n        {SvgSymbol} {/* \u003c~ add this */}\n    \u003c/div\u003e;\n}\n```\n\n***step5.*** add in your eslint ignore\n\n\n## Use Sample\n\n```tsx\nimport {Icon} from '@/library/acrool-react-icon';\n\n\u003cIcon code=\"play\" color=\"#fff\" size={100}/\u003e\n\u003cIcon code=\"desktop\" color=\"green\" size={100}/\u003e\n\u003cIcon code=\"ad\" color=\"var(--primary-color)\" size={100}/\u003e\n\u003cIcon code={EIconCode.arrow_right} color=\"secondary\" rotate={90} size={100}/\u003e\n\u003cIcon code={EIconCode.ad} size={100} hoverColor=\"red\"/\u003e\n\u003cIcon code={EIconCode.upload} size={100} activeColor=\"blud\" isActive/\u003e\n\u003cIcon code={EIconCode.redo} size={100} isRotateAnimation/\u003e\n\u003cIcon code={EIconCode.help} size={100} onClick={() =\u003e window.alert('click!')}/\u003e\n```\n\n\n\n\n## Tools\n- [Acrool Icon Symbols](https://github.com/acrool/acrool-icon-symbols) - svgs build icon-symbols\n- [Acrool Icon Symbols Cli](https://github.com/acrool/acrool-icon-symbols-cli) - svgs build icon-symbols\n\n## Online Manager\n- [acrool](https://docs.acrool.com/icon/manage-icon-symbol) - Project management system, providing icon management tools\n\n\nThere is also a example that you can play with it:\n\n[![Play react-editext-example](https://raw.githubusercontent.com/acrool/acrool-react-iconsvg/main/play-in-example-button.svg)](https://acrool-react-iconsvg.pages.dev)\n\n\n## License\n\nMIT © [Acrool](https://github.com/acrool) \u0026 [Imagine](https://github.com/imagine10255)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrool%2Facrool-react-iconsvg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facrool%2Facrool-react-iconsvg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrool%2Facrool-react-iconsvg/lists"}