0.1.27 • Published 2 years ago

bottom-sheet-react v0.1.27

Weekly downloads
10
License
MIT
Repository
github
Last release
2 years ago

bottom-sheet-react

Simple expandable Bottom Sheet for React

Install

npm i bottom-sheet-react

How to use

Add your single ChildrenComponent inside BottomSheet.

import BottomSheet from 'bottom-sheet-react';

<BottomSheet
    isExpandable={true}
    customHeight={200}
    onClose={customCloseHandler}>
    <ChildrenComponent/>
</BottomSheet>

Methods for children

Call function closeBottomSheet from children if you want to access closing trigger.

Props

proptypedefaultdesc
isExpandablebooleanfalseexpand to full height
customHeightnumberadjust container height
onClosefunctioncallback for closing
animationDelaynumber250msdelay before closing
backdropClassNamestringclass style for backdrop
backdropStyleobjectobject style for backdrop
containerClassNamestringclass style for container
containerStyleobjectobject style for container
0.1.27

2 years ago

0.1.26

2 years ago

0.1.24

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago

0.1.14

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago