0.1.1 โ€ข Published 5 months ago

react-sook-style v0.1.1

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

๐Ÿ’ž react-sook-style ๐Ÿซง

Install

npm i react-sook-style

Quick Start

import { SookButton, SookCard, SookFlex, SookGrid } from "react-sook-style";

API

Button

PropTypeDefaultDescription
childrenstring,React.ReactNode๋ฒ„ํŠผ ํ…์ŠคํŠธ ๋˜๋Š” ์•„์ด์ฝ˜
themeThemePropsprimary์ปฌ๋Ÿฌํ…Œ๋งˆ์„ค์ •
size"xs","sm" , "md" , "lg"md๋ฒ„ํŠผ ์‚ฌ์ด์ฆˆ
type"button" ,"submit" , "reset";button๋ฒ„ํŠผ ํƒ€์ž…
onClick(e?: React.MouseEvent) => void;ํด๋ฆญ์ด๋ฒคํŠธ
disabledbooleanfalse๋ฒ„ํŠผ ๋น„ํ™œ์„ฑํ™”
customStylestring์‚ฌ์šฉ์ž ์ง€์ • ์Šคํƒ€์ผ

Card

PropTypeDefaultDescription
childrenstring,React.ReactNode์นด๋“œ ์ปจํ…์ธ 
size"sm" , "md" , "lg"md์นด๋“œ ์‚ฌ์ด์ฆˆ
titlestring์นด๋“œ ์˜ต์…”๋„ ํƒ€์ดํ‹€
onClick() => void;ํด๋ฆญ์ด๋ฒคํŠธ
customStylestring์‚ฌ์šฉ์ž ์ง€์ • ์Šคํƒ€์ผ

Flex

PropTypeDefaultDescription
childrenstring,React.ReactNode์นด๋“œ ์ปจํ…์ธ 
customStylestring์‚ฌ์šฉ์ž ์ง€์ • ์Šคํƒ€์ผ
colbooleantruecolumn ์—ฌ๋ถ€
rowbooleanrow ์—ฌ๋ถ€
gapnumber12๊ฐ„๊ฒฉ
wrapstring์ค„ ํ‘œ์‹œ ์†์„ฑ
itemstringflex-start์„ธ๋กœ์ •๋ ฌ
justifystringflex-start์ขŒ์šฐ์ •๋ ฌ

Grid

PropTypeDefaultDescription
childrenstring,React.ReactNode์นด๋“œ ์ปจํ…์ธ 
customStylestring์‚ฌ์šฉ์ž ์ง€์ • ์Šคํƒ€์ผ
colstring1fr๋‚˜๋ˆŒ ์—ด ํ”„๋ ˆ์ž„ ์นผ๋Ÿผ
rowstring1fr๋‚˜๋ˆŒ ํ–‰ ํ”„๋ ˆ์ž„ ์นผ๋Ÿผ
gapnumber12๊ฐ„๊ฒฉ
itemstringflex-start์„ธ๋กœ์ •๋ ฌ
justifystringflex-start์ขŒ์šฐ์ •๋ ฌ

Stack

  • React
  • Typescript
  • Style-componet