Skip to content

[REFACTOR] 공용 버튼 컴포넌트 사이즈 선택 추가 #216

Description

@jangmk05

어떤 기능인가요?

기존 공용 버튼 컴포넌트에 사이즈를 선택할 수 있도록 추가할 예정입니다

props

- children : 버튼 컴포넌트 안에 들어갈 요소

- size( "Btn_L" | "Btn_M" | "Btn_S" )

- onClick (버튼 클릭시 수행할 작업)

- variant (배경색 :"primary" | "gray" | "transparent" )

- disabled? ( 비활성화 상태가 필요한 경우 )

- type? (버튼의 타입지정이 필요한 경우)

- className : 지정 스타일 [tailwind-merge 라이브러리로 병합 가능]

Image

작업 상세 내용

  • "Btn_L" | "Btn_M" | "Btn_S" 사이즈로 나눌 수 있도록 Button.tsx 변경
  • 기존 버튼을 사용하는 파일들 수정

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions