npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@youngduck/yd-ui

v0.6.1

Published

<img width="1359" height="913" alt="Frame 1" src="https://github.com/user-attachments/assets/0624b108-c499-48ae-993b-a86811a5de51" />

Downloads

381

Readme

@youngduck/yd-ui

YD-Design System 기반의 Tailwind CSS와 CVA(Class Variance Authority)를 활용한 UI 컴포넌트 라이브러리

기술 스택

  • 프레임워크: React 19.1.0, TypeScript 5.7.2
  • 스타일링: Tailwind CSS 4.1.11, CVA 0.7.1, PostCSS 8.5.6
  • 빌드 도구: Rollup 4.29.1, Babel 7.26.0
  • 문서화: Storybook 8.4.7, Chromatic 13.3.3 (시각적 회귀 테스트)
  • 코드 품질: ESLint 9.32.0, Prettier 3.6.2, Husky 9.1.7 (Git hooks)
  • 아이콘: Lucide React 0.542.0

주요 특징

  • YD-Design System 기반: 디자인 토큰(yds-xxxx) 적용
  • CVA 기반 Variant 시스템: 타입 안전한 variant 관리 (fill, outlined, size, color)
  • 완전한 TypeScript 지원: 모든 컴포넌트와 hook 타입 정의 제공
  • 커스터마이징 가능: className prop을 통한 스타일 확장 지원
  • 트리 쉐이킹: 사용하는 컴포넌트만 번들에 포함
  • 접근성: WAI-ARIA 가이드라인 준수 (aria-label, tabIndex)
  • 번들 최적화: Rollup 기반 ESM/CJS 듀얼 포맷, PostCSS로 CSS 단일 파일 번들링

제공 컴포넌트

  • Button: variant(fill, outlined), size(sm, md, lg, full), color(primary), disabled 지원
  • Input: variant(search, input), size(sm, md, lg, full), color(white, primary-400, primary-100), disabled 지원, Search 아이콘 포함
  • SelectBox: size(sm, md, lg, full), useSelectBox hook 필수, controlled/uncontrolled 모드, 검색 기능, 외부 클릭/ESC 닫기
  • CheckBox: 기본 체크박스 컴포넌트

설치 및 사용

npm install @youngduck/yd-ui
yarn add @youngduck/yd-ui
pnpm add @youngduck/yd-ui

라이선스

MIT