{"id":17148615,"url":"https://github.com/ntamas/react-shapeshifter","last_synced_at":"2025-06-27T19:36:07.616Z","repository":{"id":26345439,"uuid":"108390438","full_name":"ntamas/react-shapeshifter","owner":"ntamas","description":"A React component that is able to render various commonly used button shapes with only three lines, morphing smootly between shapes using CSS transitions.","archived":false,"fork":false,"pushed_at":"2025-04-30T10:49:21.000Z","size":2035,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-30T12:08:34.989Z","etag":null,"topics":["react","react-button","react-component"],"latest_commit_sha":null,"homepage":"https://ntamas.github.io/react-shapeshifter","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/ntamas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2017-10-26T09:28:09.000Z","updated_at":"2025-04-30T10:49:12.000Z","dependencies_parsed_at":"2023-01-14T04:27:55.725Z","dependency_job_id":"c35dafe4-ef6b-406d-bd51-5842f962debb","html_url":"https://github.com/ntamas/react-shapeshifter","commit_stats":{"total_commits":56,"total_committers":2,"mean_commits":28.0,"dds":0.1071428571428571,"last_synced_commit":"4b592b79882d83ba8dc8ff1788e5935e47ccf1c1"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/ntamas/react-shapeshifter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamas%2Freact-shapeshifter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamas%2Freact-shapeshifter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamas%2Freact-shapeshifter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamas%2Freact-shapeshifter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntamas","download_url":"https://codeload.github.com/ntamas/react-shapeshifter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntamas%2Freact-shapeshifter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262319623,"owners_count":23293053,"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":["react","react-button","react-component"],"created_at":"2024-10-14T21:29:17.194Z","updated_at":"2025-06-27T19:36:07.594Z","avatar_url":"https://github.com/ntamas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"react-shapeshifter\n==================\n\nA React component that is able to render various commonly used button shapes\nwith only three lines, morphing smootly between shapes using CSS transitions.\n\nUsage\n-----\n\n```js\nconst Shapeshifter = require('react-shapeshifter')\n\nconst App = () =\u003e (\n  \u003cShapeshifter shape=\"menu\" /\u003e\n)\n```\n\nProps\n-----\n\nThe component supports the following props:\n\n* `shape`: defines the shape that the button will show. Currently supported\n  shapes are as follows:\n\n  * `menu` - a standard \"hamburger\"-style menu icon\n\n  * `close` - a \"close\" icon showing an X\n\n  * `left` - left-pointing arrow\n\n  * `right` - right-pointing arrow\n\n  * `up` - up-pointing arrow\n\n  * `down` - down-pointing arrow\n\n* `color`: specifies the color of the component. You can use anything that\n  is accepted in CSS for the `background-color` property.\n\n* `thickness`: the thickness of each line in the component.\n\n* `width`: the length of each line in the component when showing the\n  \"hamburger\" icon. It should be set to nine times the thickness if you\n  want nice square-shaped buttons.\n\n* `padding`: additional padding around the button, in pixels. The default\n  settings produce 48x48 px icons, suitable for touch targets in mobile\n  apps.\n\n* `style`: allows you to specify additional CSS properties that will be\n  merged into the root tag of the component.\n\n* `onClick`: callback function to call when the user clicks on the\n  component.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntamas%2Freact-shapeshifter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntamas%2Freact-shapeshifter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntamas%2Freact-shapeshifter/lists"}