{"id":16122195,"url":"https://github.com/atriusx/react-support-badge","last_synced_at":"2025-04-06T11:42:43.787Z","repository":{"id":57345932,"uuid":"336367892","full_name":"AtriusX/react-support-badge","owner":"AtriusX","description":null,"archived":false,"fork":false,"pushed_at":"2021-02-09T00:17:46.000Z","size":616,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T17:36:19.203Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/AtriusX.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}},"created_at":"2021-02-05T19:23:45.000Z","updated_at":"2021-02-09T00:17:49.000Z","dependencies_parsed_at":"2022-09-18T08:32:07.677Z","dependency_job_id":null,"html_url":"https://github.com/AtriusX/react-support-badge","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/AtriusX%2Freact-support-badge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtriusX%2Freact-support-badge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtriusX%2Freact-support-badge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtriusX%2Freact-support-badge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AtriusX","download_url":"https://codeload.github.com/AtriusX/react-support-badge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478234,"owners_count":20945262,"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-09T21:09:55.586Z","updated_at":"2025-04-06T11:42:43.765Z","avatar_url":"https://github.com/AtriusX.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-support-badge\n\n\u003e Support Badges for React!\n\n[![NPM](https://img.shields.io/npm/v/react-support-badge.svg)](https://www.npmjs.com/package/react-support-badge) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save react-support-badge\n```\n\n## Usage\n\n```tsx\nimport react, { Component } from 'react'\nimport { SupportBadge } from 'react-support-badge'\n\nfunction Example() {\n  return \u003cSupportBadge link='https://npmjs.com/' look='red'\u003e\n    Please consider supporting me!\n  \u003c/SupportBadge\u003e\n}\n\n// Or\n\nclass Example extends Component {\n\n  render() {\n    return \u003cSupportBadge link='https://npmjs.com/' look='red'\u003e\n      Please consider supporting me!\n    \u003c/SupportBadge\u003e\n  }\n}\n```\n\n## Properties\n\n- **icon**\n  - Sets an icon for the support button. (Uses [react-icons]('https://npmjs.com/react-icons/'))\n- **buttonText**\n  - Sets the support button text.\n- **link *(required)***\n  - Sets the link to redirect to once pressed.\n- **look**\n  - Sets the look of the badge. (Supports solid colors, images, and gradients)\n- **flat**\n  - Disables the box shadow effect on the badge and support buttons when inactive.\n- **flatText**\n  - Disables the text shadow effect on all text on the badge.\n- **callback**\n  - Callback function to run before redirecting to the support badge location.\n\n## Other Features\n\nIf you would prefer to display a support message in a different way, you can check out `\u003cSupportBar /\u003e` or `\u003cSupportBubble /\u003e`. More items may get added later on in the future.\n\n## License\n\nMIT © [AtriusX](https://github.com/AtriusX)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatriusx%2Freact-support-badge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatriusx%2Freact-support-badge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatriusx%2Freact-support-badge/lists"}