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

Feature - Input Component [Design] #7

Closed
2 tasks done
octaviocvargas opened this issue Oct 30, 2021 · 0 comments
Closed
2 tasks done

Feature - Input Component [Design] #7

octaviocvargas opened this issue Oct 30, 2021 · 0 comments
Assignees
Labels
design Design task weight:3 something that required understanding
Milestone

Comments

@octaviocvargas
Copy link

octaviocvargas commented Oct 30, 2021

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 Input component will be used like this:

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


export default function MyForm() {
    const [state, setState] = useState({
      name: ''    
    })

    const handleInputChange = (event) => setState({ name: event.target.value })

    return (
      <form>
        <Input
          value={state.name}
          onChange={handleInputChange}
        />
      </form>
    )
}

Requirements 🌈

The Input component will be used by the user to pass information in the UI.

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

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

The Input should have this states:

  • Disabled
  • Focus
  • Active
  • Hover

Motivation 🔦

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

@octaviocvargas octaviocvargas added the feature New feature or request label Oct 30, 2021
@omarefg omarefg changed the title Develop components Feature - Input Component Oct 31, 2021
@omarefg omarefg added the components A components feature label Oct 31, 2021
@omarefg omarefg assigned felipedc09 and unassigned danielvaldivv Oct 31, 2021
@omarefg omarefg added the design Design task label Oct 31, 2021
@omarefg omarefg changed the title Feature - Input Component Feature - Input Component [Design] Nov 14, 2021
@omarefg omarefg removed the components A components feature label Nov 14, 2021
@omarefg omarefg added this to the Sprint 4 - UI milestone Nov 14, 2021
@omarefg omarefg closed this as completed Nov 14, 2021
@omarefg omarefg removed the feature New feature or request label Nov 14, 2021
@kevfarid kevfarid linked a pull request Nov 18, 2021 that will close this issue
5 tasks
@kevfarid kevfarid removed a link to a pull request Nov 18, 2021
5 tasks
@edanfesi edanfesi added the weight:3 something that required understanding label Nov 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
design Design task weight:3 something that required understanding
Projects
Status: Done
Development

No branches or pull requests

6 participants