{"id":16985979,"url":"https://github.com/karesztrk/astro-svg-icon","last_synced_at":"2026-02-12T09:03:02.640Z","repository":{"id":242696453,"uuid":"810303532","full_name":"karesztrk/astro-svg-icon","owner":"karesztrk","description":"A modern way to add icons to your Astro website.","archived":false,"fork":false,"pushed_at":"2025-01-24T14:42:46.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T20:57:35.585Z","etag":null,"topics":["astro-component","svg","usetheplatform","withastro"],"latest_commit_sha":null,"homepage":"https://karolytorok.netlify.app/blog/styling-an-svg/","language":"Astro","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/karesztrk.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":"2024-06-04T12:38:55.000Z","updated_at":"2025-01-24T14:42:45.000Z","dependencies_parsed_at":"2024-06-04T14:15:24.773Z","dependency_job_id":"ea0ca2d7-e80f-4809-ad64-0612c0031c10","html_url":"https://github.com/karesztrk/astro-svg-icon","commit_stats":null,"previous_names":["karesztrk/astro-svg-icon"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/karesztrk/astro-svg-icon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karesztrk%2Fastro-svg-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karesztrk%2Fastro-svg-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karesztrk%2Fastro-svg-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karesztrk%2Fastro-svg-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karesztrk","download_url":"https://codeload.github.com/karesztrk/astro-svg-icon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karesztrk%2Fastro-svg-icon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29362205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["astro-component","svg","usetheplatform","withastro"],"created_at":"2024-10-14T02:44:34.418Z","updated_at":"2026-02-12T09:03:02.603Z","avatar_url":"https://github.com/karesztrk.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Astro SVG Icon\n\nThis is a component that lets you add SVG icons to your Astro project using modern Web Standards. #UseThePlatform\nThe component utilizes the SVG `\u003cuse\u003e` tag, allowing the developer to include any external SVG asset, typically an icon for websites.\n\n## How to use\n\n```jsx\n---\nimport Icon from 'astro-svg-icon';\nimport { Calendar } from 'Calendar.svg';\n---\n\n\u003cIcon src={Calendar.src} viewBox={`0 0 ${Calendar.width} ${Calendar.height}`} /\u003e\n```\n\n## Advantages\n\n- 🚀 The image is loaded by the browser as an image, making caching possible\n- 💅 An inline SVG tag allows for flexible styling with CSS.\n\n## Limitations\n\n- The `id` of the SVG must be the same as the name of the file. For example:\n\n```html title=\"Calendar.svg\"\n\u003c!-- Calendar.svg --\u003e\n\u003csvg id=\"Calendar\" ... /\u003e\n```\n\nOtherwise use the `reference` prop to specify the `id` of the sprite.\n\n## References\n\nRead on to find out why it's useful.\n\n- https://kurtextrem.de/posts/svg-in-js\n- https://karolytorok.netlify.app/blog/styling-an-svg/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaresztrk%2Fastro-svg-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaresztrk%2Fastro-svg-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaresztrk%2Fastro-svg-icon/lists"}