{"id":13531922,"url":"https://github.com/amoutonbrady/solid-heroicons","last_synced_at":"2025-04-13T08:41:24.912Z","repository":{"id":45279320,"uuid":"287823728","full_name":"amoutonbrady/solid-heroicons","owner":"amoutonbrady","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-14T14:52:30.000Z","size":48094,"stargazers_count":74,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-30T16:31:26.792Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amoutonbrady.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-15T20:57:00.000Z","updated_at":"2024-06-06T04:50:09.193Z","dependencies_parsed_at":"2024-01-14T02:01:04.433Z","dependency_job_id":"a2b8569e-bf91-4622-ab0a-0ceba0ef5e97","html_url":"https://github.com/amoutonbrady/solid-heroicons","commit_stats":{"total_commits":74,"total_committers":5,"mean_commits":14.8,"dds":"0.45945945945945943","last_synced_commit":"6362a52ce5cbfb9e62490b6f90882cb4b0fa43b4"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoutonbrady%2Fsolid-heroicons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoutonbrady%2Fsolid-heroicons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoutonbrady%2Fsolid-heroicons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amoutonbrady%2Fsolid-heroicons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amoutonbrady","download_url":"https://codeload.github.com/amoutonbrady/solid-heroicons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248686665,"owners_count":21145537,"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":[],"created_at":"2024-08-01T07:01:06.923Z","updated_at":"2025-04-13T08:41:24.885Z","avatar_url":"https://github.com/amoutonbrady.png","language":"TypeScript","funding_links":[],"categories":["📦 Components \u0026 Libraries","TypeScript"],"sub_categories":["UI Components"],"readme":"# Solid Heroicons\n\n\u003e :warning: **This is not an official implementation**: All credits goes out to the Heroicons and Tailwind CSS team.\n\n[Heroicons](https://github.com/tailwindlabs/heroicons) integration for [Solid](https://github.com/ryansolid/solid) with a twist.\n\n[Demo](https://codesandbox.io/s/solid-heroicons-f26s1?file=/src/index.tsx)\n\n## Installation\n\n```bash\n$ npm install solid-heroicons\n$ yarn add solid-heroicons\n$ pnpm add solid-heroicons\n```\n\n## Usage\n\nYou can import every icon from heroicons [solid](https://github.com/tailwindlabs/heroicons/tree/master/24/solid), [outline](https://github.com/tailwindlabs/heroicons/tree/master/24/outline), or [solid-mini](https://github.com/tailwindlabs/heroicons/tree/master/20/solid) from `solid-heroicons/solid`, `solid-heroicons/outline` and `solid-heroicons/solid-mini` respectively. \nThey are exported as camel case. Everything exported from those packages are just an object with the SVG path and a metadata to know whether it's been exported from the solid, outline or mini variant.\n\nThose packages are generated automatically via a script from [the heroicon repo](https://github.com/tailwindlabs/heroicons).\n\nYou can import the `Icon` component helper from `solid-heroicons`. This is just a `SVGElement` wrapper that accepts any props a regular SVG would plus a special props `path` for the icon you want to load in.\n\nBy default the `stroke` | `fill` attribute of the SVG is set to `currentColor` which means you can give any color you want to the SVG by setting the css `color` attribute on SVG or any parent higher.\n\n```tsx\nimport { render } from \"solid-js/dom\";\nimport { Icon } from \"solid-heroicons\";\nimport { arrowLeft } from \"solid-heroicons/solid\";\nimport { arrowRight } from \"solid-heroicons/outline\";\nimport { arrowDown } from \"solid-heroicons/solid-mini\";\n\nconst App = () =\u003e (\n  \u003c\u003e\n    \u003cIcon path={arrowLeft} style=\"width: 24px; color: blue\" /\u003e\n    \u003cIcon path={arrowRight} style=\"width: 24px; color: green\" /\u003e\n    \u003cIcon path={arrowDown} style=\"width: 20px; color: yellow\" /\u003e\n  \u003c/\u003e\n);\n\nrender(() =\u003e App, document.getElementById(\"app\"));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famoutonbrady%2Fsolid-heroicons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famoutonbrady%2Fsolid-heroicons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famoutonbrady%2Fsolid-heroicons/lists"}