0.9.1 • Published 2 years ago

@jdesignlab/flex v0.9.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

Flex

요소들을 유연하게 정렬하고 배치하기 위한 컴포넌트입니다.

Usage

Storybook

<Flex>
  <Flex.Item>Hello</Flex.Item>
  <Flex.Item>World</Flex.Item>
</Flex>

Props

Flex

PropertyAllow TypesDescriptionDefault
asReact.ElementTypehtml 태그를 별도로 지정해줍니다.div
styleCSSObject별도의 커스텀 스타일을 지정해줍니다.row
directionrow row-reverse column column-reverse요소들의 배치 방향을 지정해줍니다.(flex-direction)row
wrapnowrap wrap wrap-reverse요소들의 줄바꿈 형식을 지정해줍니다 (flex-wrap)nowrap
justifyflex-start flex-end center space-between space-around space-evenly컨테이너 내부 요소들의 가로방향 정렬 방식을 지정해줍니다 (justify-content)flex-start
itemsstretch flex-start flex-end center baseline컨테이너 내부 요소들의 세로방향 정렬 방식을 지정해줍니다 (align-items)flex-start
contentstretch flex-start flex-end space-between space-around컨테이너 내부 요소들 사이의 여유 공간을 조절하는 속성입니다. (align-content)flex-start
gapnumber string요소들의 간격을 지정해줍니다.0

Flex.Item

PropertyAllow TypesDescriptionDefault
asReact.ElementTypehtml 태그를 별도로 지정해줍니다.div
styleCSSObject별도의 커스텀 스타일을 지정해줍니다.{}
flexnumber해당 요소의 크기를 유연하게 조절합니다. (flex-basis)1
selfauto stretch flex-start flex-end center baseline개별 요소에 적용되는 세로 정렬 방식을 지정합니다. (align-self)auto
ordernumber컨테이너 개별 요소의 순서를 지정해줍니다.0