Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Feature - Button Component [Dev] #15

Closed
2 tasks done
danielvaldivv opened this issue Nov 1, 2021 · 0 comments · Fixed by #30 or #74
Closed
2 tasks done

Feature - Button Component [Dev] #15

danielvaldivv opened this issue Nov 1, 2021 · 0 comments · Fixed by #30 or #74
Assignees
Labels
components A components feature feature New feature or request weight:5 something that need work
Milestone

Comments

@danielvaldivv
Copy link
Contributor

Checklist ✅

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Summary 💡

The Button component will be used like this:

import { Button } from '@platzily-ui/components';
// import Button from '@platzily-ui/components/Button'; Can by called like this either.


export default function MyButton() {

    const handleClick = () => {
    // My function
   }

       return (
          <Button onClick={ handleClick }>
              MyButtonName
          </Button>
       )
    }

Requirements 🌈

The Button component will be used by the user to trigger a fuction in the UI.

The user will import the Button component and it will have to receive all available props for an button HTML element.

As the user could need to give the button a ref, it must be done using React.forwardRef API.

The Button should have this states:

  • Disabled
  • Focus
  • Active
  • Hover

Motivation 🔦

An button is a basic component in any UI, so it make sense for Platzily-UI to have its own implementation of an Input element.

@danielvaldivv danielvaldivv added feature New feature or request components A components feature design Design task labels Nov 1, 2021
@kevfarid kevfarid added this to In design in UI Tasks Nov 1, 2021
@felipedc09 felipedc09 moved this from In design to Waiting for development in UI Tasks Nov 2, 2021
@kevfarid kevfarid moved this from Waiting for development to In development in UI Tasks Nov 3, 2021
@omarefg omarefg linked a pull request Nov 6, 2021 that will close this issue
5 tasks
@omarefg omarefg closed this as completed Nov 13, 2021
@omarefg omarefg moved this from In development to Done in UI Tasks Nov 13, 2021
@omarefg omarefg changed the title Feature - Button Component Feature - Button Component [Dev] Nov 13, 2021
@omarefg omarefg removed this from Done in UI Tasks Nov 13, 2021
@omarefg omarefg added this to the Sprint 4 - UI milestone Nov 13, 2021
@omarefg omarefg removed the design Design task label Nov 14, 2021
@omarefg omarefg mentioned this issue Nov 14, 2021
5 tasks
@omarefg omarefg linked a pull request Nov 14, 2021 that will close this issue
5 tasks
@kevfarid kevfarid added the weight:5 something that need work label Nov 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
components A components feature feature New feature or request weight:5 something that need work
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants