0.1.27 • Published 3 years ago
bottom-sheet-react v0.1.27
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
prop | type | default | desc |
---|---|---|---|
isExpandable | boolean | false | expand to full height |
customHeight | number | adjust container height | |
onClose | function | callback for closing | |
animationDelay | number | 250ms | delay before closing |
backdropClassName | string | class style for backdrop | |
backdropStyle | object | object style for backdrop | |
containerClassName | string | class style for container | |
containerStyle | object | object style for container |
0.1.27
3 years ago
0.1.26
3 years ago
0.1.24
4 years ago
0.1.22
4 years ago
0.1.23
4 years ago
0.1.21
4 years ago
0.1.20
4 years ago
0.1.19
4 years ago
0.1.17
4 years ago
0.1.16
4 years ago
0.1.15
4 years ago
0.1.14
4 years ago
0.1.13
4 years ago
0.1.12
4 years ago
0.1.11
4 years ago
0.1.10
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago