Skip to content

Feat/29/field components#83

Merged
cksrlcks merged 14 commits intomainfrom
feat/29/field
Feb 9, 2025
Merged

Feat/29/field components#83
cksrlcks merged 14 commits intomainfrom
feat/29/field

Conversation

@cksrlcks
Copy link
Collaborator

@cksrlcks cksrlcks commented Feb 8, 2025

β“μ΄μŠˆ

✍️ Description

λŒ€μ‹œλ³΄λ“œ νŽ˜μ΄μ§€ λ‚΄λΆ€μ—μ„œ μ‚¬μš©ν•  곡용 ν•„λ“œ μ»΄ν¬λ„ŒνŠΈλ“€μ„ μž‘μ—…ν–ˆμŠ΅λ‹ˆλ‹€.

  • Input
  • Textarea
  • TagInput
  • DateInput
  • ImageUpload
  • SearchInput

전달사항

  • μƒ˜ν”ŒνŽ˜μ΄μ§€λ₯Ό 같이 λ„£μ–΄λ‘μ—ˆμŠ΅λ‹ˆλ‹€. ('/form' 으둜 μ ‘μ†ν•˜μ‹œλ©΄ λ©λ‹ˆλ‹€.)
  • Input, Textarea, SearchInput μ»΄ν¬λ„ŒνŠΈλŠ” controlled, uncontrolled λ‘˜λ‹€ μ‚¬μš©ν•˜μ‹€ 수 μžˆμŠ΅λ‹ˆλ‹€.
  • TagInput, DateInput, ImageUploadλŠ” controlled둜만 μž‘λ™ν•©λ‹ˆλ‹€.
  • controlled μ»΄ν¬λ„ŒνŠΈλ₯Ό RHF(React Hook Form)에 μ—°κ²°ν•˜λŠ” μƒ˜ν”Œμ€ /app/(dashboard)/form/page.tsxλ₯Ό ν™•μΈν•΄μ£Όμ„Έμš”
  • 검색과 일반 μΈν’‹μ˜ μŠ€νƒ€μΌ κ°€μ΄λ“œκ°€ λ§žμ§€ μ•Šμ•„μ„œ, ν•˜λ‚˜λ‘œ ν†΅μΌν–ˆμŠ΅λ‹ˆλ‹€.
  • 이미지 μ—…λ‘œλ“œμ‹œ κΈ°μ‘΄ 이미지 μ‚­μ œλ₯Ό λͺ»ν•˜λŠ”κ²ƒ κ°™μ•„μ„œ μ‚­μ œ λ²„νŠΌμ„ μΆ”κ°€ν–ˆμŠ΅λ‹ˆλ‹€.
  • 이미지 μ—…λ‘œλ“œ μ»΄ν¬λ„ŒνŠΈμ— μΆ”κ°€ ν΄λž˜μŠ€λ„€μž„μ„ μ „λ‹¬ν•΄μ„œ ν”„λ‘œν•„ νŽ˜μ΄μ§€μ—λ„ μ‚¬μš©ν•˜μ‹œλ©΄ λ©λ‹ˆλ‹€.
  • νƒœκ·ΈμΈν’‹μ€ μ—”ν„°μ‹œ μž…λ ₯되고, 백슀페이슀둜 μ‚­μ œν•˜λŠ” κΈ°λŠ₯을 λ„£μ—ˆμ–΄μš”.
  • λ‚˜μ€‘μ— μ‹œκ°„μ΄ λ‚˜λ©΄ λ°μ΄νŠΈν”Όμ»€ UI css μ»€μŠ€ν…€ ν•˜κ² μŠ΅λ‹ˆλ‹€. (κΈ°λ³ΈUIκ°€ λ³„λ‘œ μ•ˆμ΄λ»μš”)

κ³ λ―Όν–ˆλ˜ 방법
개인적으둜 λ¦¬μ•‘νŠΈ μ»΄ν¬λ„ŒνŠΈμ—μ„œ dom의 μ™Έν˜•μ„ μ˜ˆμΈ‘ν•  수 μžˆλŠ” ꡬ쑰λ₯Ό μ’‹μ•„ν•΄μ„œ, contextλ₯Ό μ΄μš©ν•΄μ„œ compoundν˜•μ‹μœΌλ‘œ ν•˜κ³  μ‹Άμ—ˆλŠ”λ° λ‹€λ₯Έ 뢄듀이 μ‚¬μš©ν•˜μ‹œκΈ°μ— μ•½κ°„ μ–΄μƒ‰ν•˜μ‹€μˆ˜λ„ μžˆμ„κ²ƒ κ°™μ•„μ„œ κ°„λ‹¨ν•˜κ²Œ μž‘μ—…ν–ˆμŠ΅λ‹ˆλ‹€.

// κ³ λ―Όν–ˆλ˜ 방법 (μ»¨ν…μŠ€νŠΈ 이용)
<FormItem>
  <FormLabel>라벨</FormLabel>
  <Input />
  <FormMessage />
</FormItem>

// 이번 ν”„λ‘œμ νŠΈμ— μ„ νƒν•œ 방법
<Input 
  label='제λͺ©'
  error={errors.title?.message}
/>

βœ… Checklist

PR

  • Branch Convention 확인

    feat/* κΈ°λŠ₯ κ΅¬ν˜„, fix/* 버그 μˆ˜μ •, refactor/* κ°œμ„ 

  • Base Branch 확인
  • μ μ ˆν•œ Label μ§€μ •
  • Assignee 및 Reviewer μ§€μ •

Test

  • 둜컬 μž‘λ™ 확인

Additional Notes

  • (μ—†μŒ)

@cksrlcks cksrlcks added Priority: Medium πŸ”– μš°μ„ μˆœμœ„ 보톡 Type: Feature ✨ μ‹ κ·œ κΈ°λŠ₯ labels Feb 8, 2025
@cksrlcks cksrlcks requested a review from SeokChan-Lee February 8, 2025 13:29
@cksrlcks cksrlcks self-assigned this Feb 8, 2025
@vercel
Copy link

vercel bot commented Feb 8, 2025

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
taskify βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 9, 2025 0:38am

Copy link
Collaborator

@SeokChan-Lee SeokChan-Lee left a comment

Choose a reason for hiding this comment

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

κ³ μƒν•˜μ…¨μŠ΅λ‹ˆλ‹€ πŸ‘
μΆ”ν›„ ν•΄λ‹Ή μ»΄ν¬λ„ŒνŠΈ κ°€μ Έλ‹€κ°€ κΈ°μ‘΄ λ§Œλ“  인풋 ν•„λ“œ μˆ˜μ •ν•˜λ„λ‘ ν•˜κ² μŠ΅λ‹ˆλ‹€ 🫑

@cksrlcks cksrlcks merged commit db48f61 into main Feb 9, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Medium πŸ”– μš°μ„ μˆœμœ„ 보톡 Type: Feature ✨ μ‹ κ·œ κΈ°λŠ₯

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat : [곡용] μž…λ ₯ ν•„λ“œ μ»΄ν¬λ„ŒνŠΈ μž‘μ—…

2 participants