0.1.12 โ€ข Published 3 years ago

@ssg-ui/components v0.1.12

Weekly downloads
10
License
MIT
Repository
gitlab
Last release
3 years ago

ssg-ui

Introduction ๐Ÿ˜Š

  • ssg-ui/components๋Š” React, chakra-ui ๊ธฐ๋ฐ˜์˜ ssg-ui ๋””์ž์ธ ์‹œ์Šคํ…œ ์ปดํฌ๋„ŒํŠธ ๋ผ์ด ๋ธŒ๋Ÿฌ๋ฆฌ์ž…๋‹ˆ๋‹ค.
  • ์œ ์—ฐํ•˜๊ณ  ํ™•์žฅ์„ฑ์ด ์žˆ์Šต๋‹ˆ๋‹ค.
  • WAI_ARIA ์›น์ ‘๊ทผ์„ฑ ์ง€์นจ์„ ์ค€์ˆ˜ํ•ฉ๋‹ˆ๋‹ค.
  • ๋‹คํฌ๋ชจ๋“œ๋ฅผ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค.

Installing SSG UI Components ๐ŸŽ‰

$ yarn add @ssg-ui/components framer-motion @emotion/react @emotion/styled
# or
$ npm install --save @ssg-ui/components framer-motion @emotion/react @emotion/styled

Getting Started ๐Ÿ‘

ssg ui ์ปดํฌ๋„ŒํŠธ๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด, ์•„๋ž˜์˜ ์ˆœ์„œ๋ฅผ ๋”ฐ๋ผํ•ด์ฃผ์„ธ์š”. To start using the components, please follow these steps:

  1. @ssg-ui/components์˜ SsgThemeProvider, ColorModeProvider๋กœ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ์„ ๋ž˜ํ•‘ํ•ด์ฃผ์„ธ์š”.
import { ThemeProvider, ColorModeProvider } from "@ssg-ui/components";

const App = ({ children }) => (
  <SsgThemeProvider>
    <ColorModeProvider>{children}</ColorModeProvider>
  </SsgThemeProvider>
);

ColorModeProvider๋Š” ์ปดํฌ๋„ŒํŠธ์— ๋ผ์ดํŠธ ๋ชจ๋“œ์™€ ์ปฌ๋Ÿฌ ๋ชจ๋“œ๋ฅผ ์ œ๊ณตํ•˜๋Š” ์ปจํ…์ŠคํŠธ ํ”„ ๋กœ๋ฐ”์ด๋”์ž…๋‹ˆ๋‹ค. ์‹œ์Šคํ…œ์˜ ์ปฌ๋Ÿฌ ๋ชจ๋“œ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ๊ณ , ์ปค์Šคํ…€ ์ปฌ๋Ÿฌ ๋ชจ๋“œ๋ฅผ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค. ์ž์„ธํ•œ ์‚ฌ์šฉ๋ฒ•์€ chakra-ui ๊ณต์‹๋ฌธ์„œ (https://chakra-ui.com/docs/features/color-mode)๋ฅผ ์ฐธ์กฐํ•ด์ฃผ์‹œ๊ธฐ ๋ฐ”๋ž๋‹ˆ๋‹ค.

  1. ์ด์ œ๋Š” ์ปดํฌ๋„ŒํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์‹ค ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
import { Button } from "@ssg-ui/components";

const MyComponent = () => <Button>SSG-UI ๋ฒ„ํŠผ์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.</Button>;
0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.8

3 years ago

0.1.9

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.5

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago