0.1.10 • Published 8 months ago

test-layout v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

React Layout Component

다양한 레이아웃 컴포넌트를 사용할 수 있는 리액트 라이브러리입니다.

설치

$ npm install @ashleysyheo/layout-component
$ yarn add @ashleysyheo/layout-component

Container 컴포넌트

화면의 폭에 따라 내용의 최대 폭을 제한하고 중앙에 배치하는 레이아웃을 만들기 위한 컴포넌트입니다.

import { Container } from '@ashleysyheo/layout-component';

<Container tag="div" width={800} height={400} backgroundColor="aliceblue">
  {/* ReactNode 형태의 children을 전달 */}
</Container>;

Flex

Flex 레이아웃을 만들기 위한 컴포넌트입니다.

import { Flex } from '@ashleysyheo/layout-component';

<Flex tag="section" direction="row" justify="space-between" gap={16}>
  {/* ReactNode 형태의 children을 전달 */}
</Flex>;

Grid 컴포넌트

Grid 레이아웃을 만들기 위한 컴포넌트입니다.

import { Grid } from '@ashleysyheo/layout-component';

<Grid tag="article" rows="auto" columns={3} gap={16}>
  {/* ReactNode 형태의 children을 전달 */}
</Grid>;

더 자세한 사용 방법은 스토리북에서 확인해 보세요.

0.1.10

8 months ago

1.0.0

1 year ago

0.0.1

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.1.9

8 months ago

0.0.5

8 months ago

0.0.6

8 months ago

0.0.0

3 years ago