An open API service indexing awesome lists of open source software.

https://github.com/hyeokjaelee/pastime-ui

πŸ“š React components & hooks library
https://github.com/hyeokjaelee/pastime-ui

components library react storybook typescript

Last synced: 11 months ago
JSON representation

πŸ“š React components & hooks library

Awesome Lists containing this project

README

          

![header](https://capsule-render.vercel.app/api?type=rect&color=0:EEFF00,100:a82da8&fontColor=FFFFFF&height=100&section=header&text=Pastime%20UI&fontSize=40&fontAlign=50&fontAlignY=50)

![Node.js](https://img.shields.io/badge/Node-339933?style=flat-square&logo=Node.js&logoColor=white) ![Pnpm](https://img.shields.io/badge/Pnpm-F69220?style=flat-square&logo=pnpm&logoColor=white) ![React](https://img.shields.io/badge/React-61DAFB?style=flat-square&logo=react&logoColor=black) ![Typescript](https://img.shields.io/badge/Typescript-3178c6?style=flat-square&logo=typescript&logoColor=white) ![SCSS](https://img.shields.io/badge/Sass-CC6699?style=flat-square&logo=sass&logoColor=white) ![CSS_Modules](https://img.shields.io/badge/CSS%20Modules-000000?style=flat-square&logo=CSS%20Modules&logoColor=white)
![Vite](https://img.shields.io/badge/Vite-646CFF?style=flat-square&logo=vite&logoColor=white)

> It is a React component library for toy projects.

## πŸ“š How to use

**Install package**

```bash
npm i @hyeokjaelee/pastime-ui
```

**Import style**

After installing the package, import the style file in your React based app.

νŒ¨ν‚€μ§€ μ„€μΉ˜ ν›„ React 기반 μ•±μ—μ„œ style νŒŒμΌμ„ import ν•΄μ€λ‹ˆλ‹€.

```javascript
//ex: main.tsx (React), _app.tsx (Next.js)
import '@hyeokjaelee/pastime-ui/style.css';
```

## 🧩 Features

- Components that receive user input can render at the component level without affecting the external state value by using their internal state value.


μ‚¬μš©μžμ˜ μž…λ ₯을 λ°›λŠ” μ»΄ν¬λ„ŒνŠΈλ“€μ€ λ‚΄λΆ€ μƒνƒœκ°’μ„ μ΄μš©ν•΄ μ™ΈλΆ€ μƒνƒœκ°’μ— 영ν–₯을 μ£Όμ§€ μ•Šκ³  μ»΄ν¬λ„ŒνŠΈ λ‹¨μœ„μ˜ λ Œλ”λ§μ΄ κ°€λŠ₯ν•©λ‹ˆλ‹€.

- Components that take user input support convenient HOCs and hooks like validationObserver and useValidation for intrinsic validation. Similarly, since these features do not affect external state values, re-rendering can be minimized.


μ‚¬μš©μžμ˜ μž…λ ₯을 λ°›λŠ” μ»΄ν¬λ„ŒνŠΈλ“€μ€ 자체적으둜 μœ νš¨μ„± 검사와 이λ₯Ό 확인할 수 μžˆλŠ” validationObserver, useValidationλ“±μ˜ νŽΈμ˜μ„± HOC, hook을 μ§€μ›ν•©λ‹ˆλ‹€. λ§ˆμ°¬κ°€μ§€λ‘œ ν•΄λ‹Ή κΈ°λŠ₯듀은 μ™ΈλΆ€ μƒνƒœκ°’μ— 영ν–₯을 μ£Όμ§€ μ•ŠκΈ° λ•Œλ¬Έμ— μž¬λ Œλ”λ§μ„ μ΅œμ†Œν™” ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

- It supports dark mode. By default, it follows the device value, and you can change it with the class value of the html tag.

닀크λͺ¨λ“œλ₯Ό μ§€μ›ν•©λ‹ˆλ‹€. 기본적으둜 λ””λ°”μ΄μŠ€ 값을 λ”°λ₯΄λ©° html νƒœκ·Έμ˜ classκ°’μœΌλ‘œ λ³€κ²½ν•  수 μžˆμŠ΅λ‹ˆλ‹€.


ex: `` or ``.

### [Storybook](https://hyeokjaelee.github.io/pastime-ui)

For more detailed usage, please check the Storybook.

κ·Έμ™Έ μžμ„Έν•œ μ‚¬μš©λ²•μ€ μŠ€ν† λ¦¬λΆμ„ 확인해 μ£Όμ„Έμš”.

### [Github](https://github.com/HyeokjaeLee/pastime-ui)

![npm](https://img.shields.io/npm/dm/@hyeokjaelee/pastime-ui.svg?style=flat-square&logo=npm&logoColor=white)