{"id":21312025,"url":"https://github.com/richardcyrus/devchallenges-button-component","last_synced_at":"2026-04-11T07:02:41.066Z","repository":{"id":235557725,"uuid":"612026949","full_name":"richardcyrus/devchallenges-button-component","owner":"richardcyrus","description":"Solution for the Button component challenge from Devchallenges.io.","archived":false,"fork":false,"pushed_at":"2023-03-14T21:19:15.000Z","size":346,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T09:49:46.318Z","etag":null,"topics":["postcss","reactjs","testing-library","typescript","vitejs","vitest"],"latest_commit_sha":null,"homepage":"https://devchallenges-button-component-seven.vercel.app","language":"CSS","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/richardcyrus.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-10T03:16:33.000Z","updated_at":"2023-03-14T21:24:09.000Z","dependencies_parsed_at":"2024-04-23T20:58:25.987Z","dependency_job_id":null,"html_url":"https://github.com/richardcyrus/devchallenges-button-component","commit_stats":null,"previous_names":["richardcyrus/devchallenges-button-component"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcyrus%2Fdevchallenges-button-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcyrus%2Fdevchallenges-button-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcyrus%2Fdevchallenges-button-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardcyrus%2Fdevchallenges-button-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardcyrus","download_url":"https://codeload.github.com/richardcyrus/devchallenges-button-component/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790944,"owners_count":20348378,"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":["postcss","reactjs","testing-library","typescript","vitejs","vitest"],"created_at":"2024-11-21T17:23:27.209Z","updated_at":"2026-04-11T07:02:36.020Z","avatar_url":"https://github.com/richardcyrus.png","language":"CSS","readme":"\u003ch1 align=\"center\"\u003edevchallenges-button-component\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n   Solution for a challenge from  \u003ca href=\"http://devchallenges.io\" target=\"_blank\"\u003eDevchallenges.io\u003c/a\u003e.\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch3\u003e\n    \u003ca href=\"https://devchallenges-button-component-seven.vercel.app/\"\u003e\n      Demo\n    \u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://devchallenges.io/solutions/TzBROibHyIt1nEkGIBdL\"\u003e\n      Solution\n    \u003c/a\u003e\n    \u003cspan\u003e | \u003c/span\u003e\n    \u003ca href=\"https://devchallenges.io/challenges/ohgVTyJCbm5OZyTB2gNY\"\u003e\n      Challenge\n    \u003c/a\u003e\n  \u003c/h3\u003e\n\u003c/div\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\n## Table of Contents\n\n- [Overview](#overview)\n  - [User Stories](#user-stories)\n  - [Built With](#built-with)\n- [Features](#features)\n- [How to use](#how-to-use)\n- [Acknowledgements](#acknowledgements)\n- [Contact](#contact)\n\n\u003c!-- OVERVIEW --\u003e\n\n## Overview\n\n\u003cimg src=\"./design/screenshot.png\" alt=\"screenshot\" width=\"720\" height=\"450\"\u003e\n\nCreate a reusable button with all the states in the design and a page displaying all the states.\n\n### User Stories\n\n- As a user, I want to create buttons of different types: default, outline and text.\n- As a user, I want to be able to disable the shadow on a button.\n- As a user, I want to be able to disable the button.\n- As a user, I want to choose to have an icon on the left or right.\n- As a user, I want to have different button sizes.\n- As a user, I want to have different button colors.\n- As a user, I want to see a different state when the button is focused or hovered.\n- As a user, I want to use any of the standard HTML attributes available for buttons.\n\n### Built With\n\n- Flexbox\n- CSS Grid\n- [React](https://reactjs.org/)\n- [Vite](https://vitejs.dev)\n- [Vitest](https://vitest.dev) - A blazing fast unit-test framework powered by Vite.\n- [Testing Library](https://testing-library.com) - Simple and complete testing utilities that encourage good testing practices.\n- [material-icons](https://github.com/marella/material-icons)\n- [Sass Color Generator](http://scg.ar-ch.org)\n\n## Features\n\nThis application/site was created as a submission to a [DevChallenges](https://devchallenges.io/challenges) challenge. The [challenge](https://devchallenges.io/challenges/ohgVTyJCbm5OZyTB2gNY) was to create a reusable button with all the states in the design and a page displaying all the states.\n\n## How To Use\n\nTo clone and run this application, you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:\n\n```bash\n# Clone this repository\n$ git clone https://github.com/richardcyrus/devchallenges-button-component\n\n# Install dependencies\n$ yarn\n\n# Run the app\n$ yarn dev\n```\n\n## Acknowledgements\n\n- [My Custom CSS Reset](https://www.joshwcomeau.com/css/custom-css-reset/)\n- [A Modern CSS Reset](https://piccalil.li/blog/a-modern-css-reset/)\n- [Notes on Josh Comeau’s Custom CSS Reset](https://css-tricks.com/notes-on-josh-comeaus-custom-css-reset/)\n- [A Complete Guide to Flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/)\n- [A Complete Guide to Grid](https://css-tricks.com/snippets/css/complete-guide-grid/)\n- [React TypeScript Cheatsheets](https://react-typescript-cheatsheet.netlify.app/)\n- [Testing a Button Component](https://debbie.codes/blog/testing-button-component/)\n- [How to Test CSS Modules with Vitest](https://runthatline.com/test-css-module-classes-in-vue-with-vitest/)\n- [TESTING A REACT APPLICATION WITH VITEST](https://eternaldev.com/blog/testing-a-react-application-with-vitest/)\n- [Vitest with React Testing Library](https://www.robinwieruch.de/vitest-react-testing-library/)\n- [CSS3 Tip: Removing Box Shadows](https://perishablepress.com/css3-remove-box-shadow/)\n- [:focus-visible](https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible)\n- [CSS Button Styling Guide](https://moderncss.dev/css-button-styling-guide/)\n- [Creating a React Input component in typescript](https://giselamirandadifini.com/creating-a-react-input-component-in-typescript)\n- [How to use ESLint with TypeScript](https://khalilstemmler.com/blogs/typescript/eslint-for-typescript/)\n\n## Contact\n\n- Website [www.richardcyrus.com](https://www.richardcyrus.com)\n- GitHub [@richardcyrus](https://github.com/richardcyrus)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardcyrus%2Fdevchallenges-button-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardcyrus%2Fdevchallenges-button-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardcyrus%2Fdevchallenges-button-component/lists"}