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

Toggle 컴포넌트 구현 #25

Merged
merged 3 commits into from
Oct 31, 2023
Merged

Toggle 컴포넌트 구현 #25

merged 3 commits into from
Oct 31, 2023

Conversation

eeseung
Copy link
Member

@eeseung eeseung commented Oct 31, 2023

📑 이슈 번호

🚧 구현 내용

  • Toggle 컴포넌트 구현
LinkHub-FE_toggle-component_off LinkHub-FE_toggle-component_on
LinkHub-FE_toggle-component.mov

🚨 특이 사항

Toggle Props

interface ToggleProps {
  name: string
  on?: boolean // 토글 여부 (default: false)
  onChange: (e?: React.ChangeEvent<HTMLInputElement>) => void
}

사용 예시

<Toggle
  name="example"
  onChange={(e) => {
    console.log(e?.target.name)
  }}
/>

@eeseung eeseung added the ✨ Feature 기능 개발 label Oct 31, 2023
@eeseung eeseung added this to the 1차 스프린트 milestone Oct 31, 2023
@eeseung eeseung self-assigned this Oct 31, 2023
@eeseung eeseung linked an issue Oct 31, 2023 that may be closed by this pull request
1 task
Copy link
Contributor

@bomi8489 bomi8489 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니당

Copy link
Contributor

@dudwns dudwns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

깔끔하게 구현하셨네요..! 확인했습니다.

@eeseung eeseung merged commit b3291d1 into develop Oct 31, 2023
1 check passed
@eeseung eeseung deleted the feature/#15/component-toggle branch October 31, 2023 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Toggle 컴포넌트 구현
3 participants