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
- Host: GitHub
- URL: https://github.com/hyeokjaelee/pastime-ui
- Owner: HyeokjaeLee
- License: mit
- Created: 2021-01-15T10:46:42.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-14T05:21:31.000Z (almost 2 years ago)
- Last Synced: 2024-07-14T06:27:38.951Z (almost 2 years ago)
- Topics: components, library, react, storybook, typescript
- Language: TypeScript
- Homepage: https://hyeokjaelee.github.io/pastime-ui
- Size: 36.9 MB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

     

> 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)
