Skip to content

docs(www): document Chip - #312

Merged
Yeom-JinHo merged 1 commit into
devfrom
docs/chip-docs-jinho
Jul 27, 2026
Merged

docs(www): document Chip#312
Yeom-JinHo merged 1 commit into
devfrom
docs/chip-docs-jinho

Conversation

@Yeom-JinHo

Copy link
Copy Markdown
Member

Changes

Chip을 문서로 추가합니다. 컴포넌트 변경 없이 문서만 추가하는 PR입니다.

chip.mdx

  • Installation / Usage / Examples / Anatomy / API Reference. API 표는 소스를 직접 읽고 수동 작성.
  • Chip은 네이티브 <button>. color(primary/secondary/success/warning/danger) · variant(filled/outline) · size(small/medium/large) · selected · asChild · 네이티브 disabled(40% opacity)를 문서화.
  • 예제: Usage / Colors / Variants / Sizes / Selected(useState 필터 데모, SSR-safe) / Disabled / asChild. 각 <Preview code={...}> 예제 코드는 실제 렌더 결과와 일치.
  • 다크 사이트 대응: Chip은 텍스트색을 라이트 표면 기준으로 하드코딩(gray700)해서 다크 stage에서 안 보입니다. 따라서 각 데모를 라이트 카드로 감쌌습니다(머지된 Radio 문서와 동일한 LightStage 패턴). code 문자열엔 wrapper 미포함.
    스킵.

Known limitations (문서에 명시)

  • color × variant × selected 스타일 매트릭스가 불완전합니다: filled selected는 primary/secondary만, outline은 secondary가 없음 → 일부 조합(secondary outline, success/warning/danger filled-selected)이 스타일 없이 렌더됩니다. 예제는 지원되는 조합만 사용하고 이 한계를 문서에 표기했습니다. (컴포넌트 소스는 건드리지 않음)

Visuals

스크린샷 2026-07-27 오후 11 00 13

Checklist

  • Have you written the functional specifications? — 문서 자체가 명세
  • Have you written the test code? — 문서 전용 PR이라 유닛 테스트 없음. 프로덕션 빌드로 검증

Add the Chip component docs page (Preview-based MDX) covering color, variant,
size, selected, and disabled states plus asChild, with the API reference written
by hand from source. Chip hardcodes light-surface colors, so each demo is shown
on a light card (matching the Radio docs). Documents the incomplete
color×variant×selected style matrix as a known limitation.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Jul 27, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c54e32c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (2)
  • main
  • release/v1

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9b662249-12ed-4349-8276-a88175c7ffe8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/chip-docs-jinho

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Yeom-JinHo
Yeom-JinHo merged commit 3b43eff into dev Jul 27, 2026
6 checks passed
@Yeom-JinHo
Yeom-JinHo deleted the docs/chip-docs-jinho branch July 27, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants