Skip to content

Conversation

@yyezzzy
Copy link
Collaborator

@yyezzzy yyezzzy commented Nov 22, 2024

✅ 관련 이슈

➕ 변경 내용

image 이 버튼 UI를 만들었습니다. 속성은 soild버튼/outlined버튼, 너비, radius, diable 등이 있습니다

🔧 사용 방법

image

🌟 공유하고싶은 내용

/**
 * 버튼 컴포넌트
 * @param variant - 버튼 스타일 solid | outlined
 * @param width - 버튼 너비 xs | sm | md | lg
 * @param radius - 버튼 모서리 둥글기 md | full
 * @param disabled - 비활성화 여부 true | false
 * @param children - 버튼 내용 (텍스트, 아이콘 등)
 * @param props - 버튼 속성 (onClick, type 등)
 * @returns 버튼 컴포넌트
 */

props가 많아지는 컴포넌트는 .tsx에 주석으로 이렇게 작성하면 미리보기 해줍니다.
공통 컴포넌트에서 적어주면 좋을 것 같습니다 !

image

@yyezzzy yyezzzy added the 🎨 Design Layout / Component 관련 label Nov 22, 2024
@yyezzzy yyezzzy self-assigned this Nov 22, 2024
@github-actions
Copy link

💄 Storybook: https://673dcf13c9a3a1189a7c6fd4-hjreoydqyt.chromatic.com/ # Chromatic에서 생성된 Storybook URL
🕖 Update: 2024년 11월 22일 16시 44분 47초 # 현재 시간

Copy link
Collaborator

@hongggyelim hongggyelim left a comment

Choose a reason for hiding this comment

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

스토리도 깔끔하게 작성하셨네요 고생하셨습니다!

@cccwon2 cccwon2 self-requested a review November 22, 2024 07:58
Copy link
Contributor

@cccwon2 cccwon2 left a comment

Choose a reason for hiding this comment

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

수고하셨습니다

@cccwon2 cccwon2 merged commit 1ef52cd into dev Nov 22, 2024
4 checks passed
@yyezzzy yyezzzy added the 🎨 Storybook 스토리북 label Nov 22, 2024
@yyezzzy yyezzzy changed the title design: 공통 button 컴포넌트 추가 design: 공통 button 컴포넌트 UI 구현 Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎨 Design Layout / Component 관련 🎨 Storybook 스토리북

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants