{"id":19369559,"url":"https://github.com/elevenpassin/react-button-component","last_synced_at":"2026-04-29T00:03:14.824Z","repository":{"id":86753610,"uuid":"129536932","full_name":"elevenpassin/react-button-component","owner":"elevenpassin","description":"A simple react button component with basic styles. Think of it as a lego block :) ","archived":false,"fork":false,"pushed_at":"2018-04-14T17:46:53.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T06:49:23.981Z","etag":null,"topics":["button","component","extendable","react","simple","styled"],"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/elevenpassin.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}},"created_at":"2018-04-14T16:58:56.000Z","updated_at":"2019-09-25T15:31:04.000Z","dependencies_parsed_at":"2023-03-09T08:45:20.647Z","dependency_job_id":null,"html_url":"https://github.com/elevenpassin/react-button-component","commit_stats":null,"previous_names":["elevenpassin/react-button-component","buoyantair/react-button-component"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elevenpassin%2Freact-button-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elevenpassin%2Freact-button-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elevenpassin%2Freact-button-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elevenpassin%2Freact-button-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elevenpassin","download_url":"https://codeload.github.com/elevenpassin/react-button-component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240491897,"owners_count":19809978,"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":["button","component","extendable","react","simple","styled"],"created_at":"2024-11-10T08:12:14.779Z","updated_at":"2026-04-29T00:03:14.786Z","avatar_url":"https://github.com/elevenpassin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-button-component\nA simple react button component based on styled-components with basic styles. Great when you want a quick button that looks neat enough and is yet, customizable to the heart!\n\n![](assets/jumbotron.png?raw=true)\n\n## Installation\n\n```js\n  yarn add react-button-component\n```\n\n## Usage\nTo use the Button component, simply import it into your project, and use it just like any other component!\n\n### The base component\nBy default, the button has some base styles applied to make it look clean!\n```js\nimport React, { Component } from 'react';\nimport Button from 'react-button-component';\n\nclass App extends Component {\n  render() {\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003cButton onClick={() =\u003e alert('Welcome!')}\u003e\n          Hop in!\n        \u003c/Button\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default App;\n```\nResult:\n![](assets/jumbotron.png?raw=true)\n\n### Easily extend and overwrite with styled-components\nThe button component is styled using styled-components library, which means you the Button component is in fact, a Styled component! Now you can use `Button.extend` to extend the styles till your heart is content! For example, we can modify the default component in the above file to have a custom style matching a particular theme:\n```js\nimport React, { Component } from 'react';\nimport Button from 'react-button-component';\nimport logo from './logo.svg';\nimport './App.css';\n\nconst CustomizedButton = Button.extend`\n  color: #FFF;\n  border: none;\n  border-radius: 5px;\n  background: linear-gradient(70deg, #FF5686, #FF7B9E);\n  border-bottom: 5px solid #C44267;\n`\n\nclass App extends Component {\n  render() {\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003cCustomizedButton onClick={() =\u003e alert('bonkers!')}\u003e\n          Chearful!\n        \u003c/CustomizedButton\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default App;\n```\nResult:\n![](assets/chear.png?raw=true)\n\n## Created by\nbuoyantair\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felevenpassin%2Freact-button-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felevenpassin%2Freact-button-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felevenpassin%2Freact-button-component/lists"}