You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
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.exportdefaultfunctionMyForm(){const[state,setState]=useState({name: ''})consthandleInputChange=(event)=>setState({name: event.target.value})return(<form><Inputvalue={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.
The text was updated successfully, but these errors were encountered:
Checklist ✅
Summary 💡
The Input component will be used like this:
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:
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.
The text was updated successfully, but these errors were encountered: