{"id":14990246,"url":"https://github.com/pictogrammers/svg-icon","last_synced_at":"2025-04-12T02:10:24.540Z","repository":{"id":51341226,"uuid":"297191262","full_name":"Pictogrammers/svg-icon","owner":"Pictogrammers","description":"A vanilla webcomponent for rendering SVG path based icons. ","archived":false,"fork":false,"pushed_at":"2025-02-03T00:00:05.000Z","size":39,"stargazers_count":11,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T06:03:58.864Z","etag":null,"topics":["icon","svg-path","webcomponent"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Pictogrammers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["JamesCoyle"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-09-21T00:44:31.000Z","updated_at":"2025-03-17T21:37:25.000Z","dependencies_parsed_at":"2024-09-24T16:01:06.361Z","dependency_job_id":null,"html_url":"https://github.com/Pictogrammers/svg-icon","commit_stats":{"total_commits":15,"total_committers":4,"mean_commits":3.75,"dds":0.2666666666666667,"last_synced_commit":"722e7940c63d138b96e5e2d58c05ac58709a4324"},"previous_names":["jamescoyle/svg-icon"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pictogrammers%2Fsvg-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pictogrammers%2Fsvg-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pictogrammers%2Fsvg-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pictogrammers%2Fsvg-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pictogrammers","download_url":"https://codeload.github.com/Pictogrammers/svg-icon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505929,"owners_count":21115354,"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":["icon","svg-path","webcomponent"],"created_at":"2024-09-24T14:19:46.446Z","updated_at":"2025-04-12T02:10:24.515Z","avatar_url":"https://github.com/Pictogrammers.png","language":"HTML","funding_links":["https://github.com/sponsors/JamesCoyle"],"categories":[],"sub_categories":[],"readme":"# SVG Icon WebComponent\n\n[![](https://chips.james-coyle.now.sh/npm/version/@jamescoyle/svg-icon)](https://www.npmjs.com/package/@jamescoyle/svg-icon)\n[![](https://chips.james-coyle.now.sh/npm/downloads/@jamescoyle/svg-icon)](https://www.npmjs.com/package/@jamescoyle/svg-icon)\n\nA basic webcomponent for rendering a single path SVG icon. This component makes it easy to use SVG path based icon packs such as [MaterialDesignIcons](https://materialdesignicons.com/) and [SimpleIcons](https://simpleicons.org/).\n\n# Usage\n\n1. Install the package from NPM\n    ```\n    npm install @jamescoyle/svg-icon\n    ```\n\n2. Import the component into your application\n    ```\n    import '@jamescoyle/svg-icon'\n    ```\n\n3. Use the icon in your markup\n    ```\n    \u003csvg-icon type=\"mdi\" path=\"M...z\"\u003e\u003c/svg-icon\u003e\n    ```\n\n# Attributes\n\n| Name    | Default     | Description                                                                                                                          |\n| ------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------ |\n| type    | null        | This sets the size and viewbox to match the recommended size for the icon pack specified.                                            |\n| path    | null        | Required. An SVG path to render as an icon                                                                                           |\n| size    | 24          | The width and height of the SVG element                                                                                              |\n| viewbox | \"0 0 24 24\" | The `viewBox` of the SVG element                                                                                                     |\n| flip    | null        | One of \"horizontal\", \"vertical\", or \"both\". Flips the icon in the specified direction(s).                                            |\n| rotate  | 0deg        | Rotates the icon by the specified value. Can be any valid [CSS angle](https://developer.mozilla.org/en-US/docs/Web/CSS/angle) value. |\n\n# Styling\n\nBy default the icon will inherit the current font color of the container it is placed within. You can easily provide a specific color using an inline style on the element (`style=\"color: red\"`) or can target the tag as normal with CSS rules.\n\n# Accessibility\n\nYou should make use of aria attributes to improve accessibility for users that use screen reading technology. You can use `aria-labelledby` to create a link between an icon and its label. A descriptive `aria-label` can be used to allow screen readers to announce an icon if there is no visual label to accompany it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpictogrammers%2Fsvg-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpictogrammers%2Fsvg-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpictogrammers%2Fsvg-icon/lists"}