# Component/BottomSheet
> Props: component-bottomsheet.props.txt
## Examples
### Base
```tsx
{
args: {
title: 'Heading',
subTitle: 'SubHeading'
},
render: args => {
const [show, setShow] = useState(false);
return <>
setShow(false)}>
Body Content
>;
}
}
```
### Bottom Sheet With Modal
```tsx
{
render: () => {
const [show, setShow] = useState(false);
const [show_modal, setShowModal] = useState(false);
const onHandleConfirm = () => {
Confirm({
zIndex: getZIndex('toast'),
title: 'confirm'
});
};
return <>
setShow(false)} zIndex={getZIndex('modal')}>
{({
close
}) => <>
Body Content
setShowModal(false)} cancelText='닫기' fullScreen>
>}
>;
}
}
```
### Content With Close Action
```tsx
{
render: () => {
const [show, setShow] = useState(false);
return <>
setShow(false)}>
{({
close
}) => <>
Body Content
>}
>;
}
}
```
### Disabled Close Dim Click
```tsx
{
args: {
title: 'Heading',
subTitle: 'SubHeading'
},
render: args => {
const [show, setShow] = useState(false);
return <>
setShow(false)}>
Body Content
>;
},
args: {
title: 'Heading',
subTitle: 'SubHeading',
canClickOutside: false
}
}
```
### Disabled Close Drag
```tsx
{
args: {
title: 'Heading',
subTitle: 'SubHeading'
},
render: args => {
const [show, setShow] = useState(false);
return <>
setShow(false)}>
Body Content
>;
},
args: {
title: 'Heading',
subTitle: 'SubHeading',
canDragClose: false
}
}
```
### Max Height
내부 컨텐츠 길이가 길어질 경우 innerHeight 기준 최소 여백 안에서 max-height 적용됩니다.
```tsx
{
render: () => {
const [show, setShow] = useState(false);
return <>
setShow(false)}>
Body Content
long content...
>;
},
parameters: {
docs: {
description: {
story: '내부 컨텐츠 길이가 길어질 경우 innerHeight 기준 최소 여백 안에서 max-height 적용됩니다.'
}
}
}
}
```
### No Use Portal Bottom Sheet
```tsx
{
render: args => {
const [open, setOpen] = useState(false);
return
setOpen(false)}>
BottomSheet Content
setOpen(false)} />
;
},
args: {
noUsePortal: true
}
}
```