0.8.2 • Published 2 years ago
@jdesignlab/drawer v0.8.2
Drawer
Drawer 컴포넌트는 마치 서랍 처럼 화면 사이드에서 정보를 출력하는 UI 입니다.
Usage
<>
<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
Property | Allow Types | Description | Default |
---|---|---|---|
open | boolean | Drawer의 open 상태를 지정합니다. | false |
full | boolean | full size 형태의 Drawer로 사용합니다. | false |
onOpen | () => void | Drawer가 열릴 때 발생하는 이벤트 입니다. | |
onClose | () => void | Drawer가 닫힐 때 발생하는 이벤트 입니다. |
Drawer.Header
Property | Allow Types | Description | Default |
---|---|---|---|
children | React.ReactNode | Drawer.Header 자식 요소 입니다. |
Drawer.Body
Property | Allow Types | Description | Default |
---|---|---|---|
children | React.ReactNode | Drawer.Body 자식 요소 자식 요소 입니다. |
Drawer.Footer
Property | Allow Types | Description | Default |
---|---|---|---|
children | React.ReactNode | Drawer.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