{"id":17951818,"url":"https://github.com/joshwcomeau/react-play-button","last_synced_at":"2025-03-25T00:31:36.067Z","repository":{"id":43950842,"uuid":"54842312","full_name":"joshwcomeau/react-play-button","owner":"joshwcomeau","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-05T17:27:23.000Z","size":1641,"stargazers_count":7,"open_issues_count":9,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T05:11:55.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/joshwcomeau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-27T18:28:33.000Z","updated_at":"2021-09-25T09:57:48.000Z","dependencies_parsed_at":"2023-01-24T06:00:56.726Z","dependency_job_id":null,"html_url":"https://github.com/joshwcomeau/react-play-button","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshwcomeau%2Freact-play-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshwcomeau%2Freact-play-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshwcomeau%2Freact-play-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshwcomeau%2Freact-play-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshwcomeau","download_url":"https://codeload.github.com/joshwcomeau/react-play-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377920,"owners_count":20605374,"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-29T09:51:18.950Z","updated_at":"2025-03-25T00:31:35.567Z","avatar_url":"https://github.com/joshwcomeau.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-play-button\n\nA React component that gives you a \"Play / Stop\" button.\n\n### Component props\n\n```js\nconst propTypes = {\n  url: PropTypes.string.isRequired,\n  // Whether or not it's currently playing\n  active: PropTypes.bool,\n  // Callback that will be called when the sample is played\n  play: PropTypes.func,\n  // Callback that will be called when the sample is stopped\n  stop: PropTypes.func,\n  // Diameter of the button, in pixels\n  size: PropTypes.number,\n  // Styles for the outer ring that displays time progress\n  progressCircleWidth: PropTypes.number,\n  progressCircleColor: PropTypes.string,\n  // Various colors for the button elements\n  idleBackgroundColor: PropTypes.string,\n  activeBackgroundColor: PropTypes.string,\n  stopIconColor: PropTypes.string,\n  playIconColor: PropTypes.string,\n  // How quickly the play icon should morph into the stop icon\n  iconAnimationLength: PropTypes.number,\n  // How long the audio should be faded in/out when playing/stopping\n  fadeInLength: PropTypes.number,\n  fadeOutLength: PropTypes.number,\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshwcomeau%2Freact-play-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshwcomeau%2Freact-play-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshwcomeau%2Freact-play-button/lists"}