-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Accordion 컴포넌트 작성 #53
Conversation
✅ Deploy Preview for moabam-storybook ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨어요!!
}: AccordionGroupProps) => { | ||
return ( | ||
<AccordionGroupContext.Provider | ||
value={{ headerStyle, bodyStyle, buttonColored }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오호! 사용하는 곳에서 각각의 컴포넌트에 적용될 클래스 이름을 받아서 스타일로 전달해주는 방식이군요!! 👍👍
🧩 이슈 번호
✅ 작업 사항
아코디언 컴포넌트를 작성했습니다.
컴포넌트 목록
👩💻 공유 포인트 및 논의 사항
Accordion 사용법
AccordionHeader
optional
: 펼치기 버튼의 포인트컬러 유무를 결정합니다. 기본값은 false 입니다.optional
: AccordionHeader 에 className 을 부여하여 커스텀할 수 있습니다.AccordionBody
optional
: AccordionBody 에 className 을 부여하여 커스텀할 수 있습니다.AccordionGroup 사용법
커스텀이 많아지는 컴포넌트이기 때문에, 일괄 스타일 적용 (className, buttonColored) 이 가능하도록 했습니다.
적용 우선순위는 다음과 같습니다. (오른쪽으로 갈 수록 우선순위 높음)
기본값 < AccordionGroup에 작성 < AccordionHeader,AccordionBody에 작성
주의 사항