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

[Feat/#11] 텍스트 컴포넌트 제작 #12

Merged
merged 6 commits into from
Feb 1, 2025
Merged

[Feat/#11] 텍스트 컴포넌트 제작 #12

merged 6 commits into from
Feb 1, 2025

Conversation

sikkzz
Copy link
Collaborator

@sikkzz sikkzz commented Jan 30, 2025

💡 변경사항 & 이슈

텍스트 컴포넌트 제작

✍️ 관련 설명

매번 mixin 사용해서 스타일링 하는거 보다 Text 컴포넌트를 만들고 props로 스타일링 받는게 통일성 밎 확장성에 도움 될 거 같아서 만들어봤어

props들만 간단히 설명해줄게
size -> font size
color -> font color
weight -> font weight
align -> text align

위 props들은 보면 다 알 수 있을거야

truncated -> 얘는 텍스트 line clamp 및 overflow ellipsis 처리 용인데 우선은 true로 줄때 1줄 처리, 2로 넘기면 2줄 처리까지만 해놨어 이후에 필요성이 생기면 확장해볼게

스크린샷 2025-01-30 오후 4 42 12 이게 1줄용 truncated={true}

스크린샷 2025-01-30 오후 4 42 41 이게 2줄용 truncated={2}

내가 놓치지 않았다면 이 컴포넌트로 지금까지 나온 디자인의 텍스트들은 다 처리가 가능할꺼야. 혹시 놓친 부분이 있거나 의견 있으면 애기해줘!

⭐️ Review point

  • 해당 컴포넌트로 처리 불가능한 텍스트 디자인 없는지
  • 이해 안가는 부분 있는지
  • 이외 추가 의견

📷 Demo

.

@sikkzz sikkzz added the Feature new feature label Jan 30, 2025
@sikkzz sikkzz self-assigned this Jan 30, 2025
@sikkzz sikkzz requested a review from lgrin-byte as a code owner January 30, 2025 07:44
@sikkzz sikkzz linked an issue Jan 30, 2025 that may be closed by this pull request
1 task
Copy link

github-actions bot commented Jan 30, 2025

🧷 Storybook: https://6798a432c75b75bf6b81bc26-virzbemtgs.chromatic.com/

⏰ Update: 2025년 02월 01일 16시 14분

@sikkzz sikkzz force-pushed the feat/#11 branch 3 times, most recently from c9564c7 to 6efc95c Compare January 31, 2025 05:27
@sikkzz sikkzz merged commit d9d5b9d into develop Feb 1, 2025
2 checks passed
@sikkzz sikkzz deleted the feat/#11 branch February 1, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Text 컴포넌트 제작
2 participants