0.8.2 • Published 2 years ago

@jdesignlab/drawer v0.8.2

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

Drawer

Drawer 컴포넌트는 마치 서랍 처럼 화면 사이드에서 정보를 출력하는 UI 입니다.

Usage

Storybook

<>
  <Button
    onClick={e => {
      setDrawerOpen(true);
    }}
  >
    OPEN Drawer.
  </Button>
  <Drawer
    open={open}
    onClose={() => {
      setDrawerOpen(false);
    }}
    onOpen={() => {
      setDrawerOpen(true);
    }}
  >
    <Drawer.Content>
      <Drawer.Header>Drawer Title</Drawer.Header>
      <Drawer.Body>
        <h3>Body</h3>
        <p>본문내용</p>
        <p>본문내용</p>
        <p>본문내용</p>
      </Drawer.Body>
      <Drawer.Footer>
        <Flex justify="space-around" items="center">
          <div>
            <Button
              color="red-base"
              onClick={e => {
                setDrawerOpen(false);
              }}
            >
              닫기
            </Button>
          </div>
          <div>
            <Button color="blue-base">저장</Button>
          </div>
        </Flex>
      </Drawer.Footer>
    </Drawer.Content>
  </Drawer>
</>

Props

Drawer

PropertyAllow TypesDescriptionDefault
openbooleanDrawer의 open 상태를 지정합니다.false
fullbooleanfull size 형태의 Drawer로 사용합니다.false
onOpen() => voidDrawer가 열릴 때 발생하는 이벤트 입니다.
onClose() => voidDrawer가 닫힐 때 발생하는 이벤트 입니다.

Drawer.Header

PropertyAllow TypesDescriptionDefault
childrenReact.ReactNodeDrawer.Header 자식 요소 입니다.

Drawer.Body

PropertyAllow TypesDescriptionDefault
childrenReact.ReactNodeDrawer.Body 자식 요소 자식 요소 입니다.

Drawer.Footer

PropertyAllow TypesDescriptionDefault
childrenReact.ReactNodeDrawer.Footer 자식 요소 자식 요소 입니다.
0.8.1

2 years ago

0.8.0

2 years ago

0.6.2

2 years ago

0.8.2

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.8

2 years ago

0.5.7

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago