1.1.1 • Published 7 months ago

@ashleysyheo/layout v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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>;

Masonry 컴포넌트

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

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

<Masonry tag="ul" columns={5} spacing={16}>
  {/* ReactNode 형태의 children을 전달 */}
</Masonry>;

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

1.1.1

7 months ago

1.1.0

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago