Skip to content

richardcyrus/devchallenges-button-component

Repository files navigation

devchallenges-button-component

Solution for a challenge from Devchallenges.io.

Table of Contents

Overview

screenshot

Create a reusable button with all the states in the design and a page displaying all the states.

User Stories

  • As a user, I want to create buttons of different types: default, outline and text.
  • As a user, I want to be able to disable the shadow on a button.
  • As a user, I want to be able to disable the button.
  • As a user, I want to choose to have an icon on the left or right.
  • As a user, I want to have different button sizes.
  • As a user, I want to have different button colors.
  • As a user, I want to see a different state when the button is focused or hovered.
  • As a user, I want to use any of the standard HTML attributes available for buttons.

Built With

Features

This application/site was created as a submission to a DevChallenges challenge. The challenge was to create a reusable button with all the states in the design and a page displaying all the states.

How To Use

To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/richardcyrus/devchallenges-button-component

# Install dependencies
$ yarn

# Run the app
$ yarn dev

Acknowledgements

Contact