Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[미션1] TextField 컴포넌트를 구현하라 #1

Open
bytrustu opened this issue Dec 18, 2022 · 0 comments
Open

[미션1] TextField 컴포넌트를 구현하라 #1

bytrustu opened this issue Dec 18, 2022 · 0 comments
Assignees

Comments

@bytrustu
Copy link
Member

bytrustu commented Dec 18, 2022

https://www.figma.com/file/XSC4tRBxNv7kAsJw5dJOZI/learn-frontend-skill?node-id=0%3A1&t=jwPMQchQMGYS9lq0-0

목표

Input 컴포넌트 구현
useInputHooks 구현

요구사항

  1. 제공 된 피그마 Input 컴포넌트 요구사항 구현
    • label (label 클릭시 input focus)
    • placeholder
    • hover
    • focus
    • readOnly
    • disabled
    • error
  2. useInputHooks 구현
    • 함수의 매개변수로 초기 값을 넘겨주고 value, onChange, reset을 리턴하도록 구현한다.
  3. useInputsHooks 구현
    • 함수로 제네릭 타입과 초기 값을 넘겨주고 value, onChange, reset을 리턴하도록 구현한다.

branch
mission1/shinjungoh

    <TextField
        label="label1"
        id="label1"
        onChange={() => {}}
        value=""
    />
    <TextField
        label="label2"
        id="label2"
        name="label2"
        onChange={() => {}}
        value=""
    />
    <TextField
        label="label3"
        id="label3"
        name="label3"
        onChange={() => {}}
        value=""
    />
    <TextField
        label="label4"
        id="label4"
        error
        errorMessage="오류가 발생했습니다."
    />
@bytrustu bytrustu changed the title 1. Input 컴포넌트를 구현하라 Step1. Input 컴포넌트를 구현하라 Dec 18, 2022
@bytrustu bytrustu changed the title Step1. Input 컴포넌트를 구현하라 step1. Input 컴포넌트를 구현하라 Dec 18, 2022
@bytrustu bytrustu changed the title step1. Input 컴포넌트를 구현하라 [미션1] Input 컴포넌트를 구현하라 Dec 18, 2022
ShinjungOh added a commit that referenced this issue Dec 20, 2022
* [Mission1] feat: TextField UI 구현

* [Mission1] feat: useInput, useInputs 구현

* [Mission1] refactor: TextField css 수정, 불필요 코드 제거 #1
@bytrustu bytrustu changed the title [미션1] Input 컴포넌트를 구현하라 [미션1] TextField 컴포넌트를 구현하라 Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants