{"id":15369112,"url":"https://github.com/developit/preact-svg","last_synced_at":"2025-04-15T13:43:18.790Z","repository":{"id":57329565,"uuid":"46526915","full_name":"developit/preact-svg","owner":"developit","description":"[DEPRECATED] :art: Use inline \u003csvg\u003e in Preact 4 and prior. :tulip:","archived":false,"fork":false,"pushed_at":"2017-05-09T15:15:43.000Z","size":45,"stargazers_count":16,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T11:16:10.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://npm.im/preact-svg","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/developit.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":"2015-11-19T23:33:51.000Z","updated_at":"2022-11-21T21:49:21.000Z","dependencies_parsed_at":"2022-08-31T04:10:18.977Z","dependency_job_id":null,"html_url":"https://github.com/developit/preact-svg","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-svg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-svg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-svg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-svg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/preact-svg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986317,"owners_count":21194025,"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-10-01T13:34:13.599Z","updated_at":"2025-04-15T13:43:18.760Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"\u003e **Notice:** `preact-svg` is deprecated and obsolete.\n\u003e\n\u003e As of Preact 5.x, SVG is now supported right out of the box, so there is no need for `preact-svg`.\n\n\n# preact-svg\n\n[![NPM](http://img.shields.io/npm/v/preact-svg.svg)](https://www.npmjs.com/package/preact-svg)\n[![travis-ci](https://travis-ci.org/developit/preact-svg.svg?branch=master)](https://travis-ci.org/developit/preact-svg)\n\nThis library provides an `\u003cSVG\u003e` wrapper component that makes inline `\u003csvg\u003e` work in [Preact] version 4 and prior.\n\n\u003e **[CodePen Demo](http://codepen.io/developit/pen/ZbPdem?editors=001)**\n\u003e\n\u003e ![preact-svg](https://i.gyazo.com/df0bcc29e36ee107352600679e537176.gif)\n\n---\n\n\n### Usage Example\n\n```js\nimport SVG from 'preact-svg';\nimport { h, render } from 'preact';\n/** @jsx h */\n\nconst Main = () =\u003e (\n\t\u003cSVG width=\"100\" height=\"50\"\u003e\n\t\t\u003cpath d=\"M0,0T 50,50 100,50 50,100Z\" stroke=\"#000\" stroke-width=\"2\" /\u003e\n\t\u003c/SVG\u003e\n);\n\nrender(\u003cMain /\u003e, document.body);\n```\n\n\n---\n\n\n### License\n\n[MIT]\n\n\n[Preact]: https://github.com/developit/preact\n[MIT]: http://choosealicense.com/licenses/mit/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-svg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fpreact-svg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-svg/lists"}