Skip to content

Commit ebed713

Browse files
committed
Update types and Readme with smallPanelHeight prop
1 parent 9280eab commit ebed713

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export default App = () => {
8686
| **closeIconStyle** | `Object` | Use this prop to override close button icon style | `{}` |
8787
| **barStyle** | `Object` | Use this prop to override bar style | `{}` |
8888
| **barContainerStyle** | `Object` | Use this prop to override bar container style | `{}` |
89+
| **smallPanelHeight** | `Object` | Use this prop to override the small panel default height | |
8990
| **closeOnTouchOutside** | `bool` | Set true if you want to close panel by touching outside | `false` |
9091
| **allowTouchOutside** | `bool` | Set true if you want to make toucable outside of panel | `false` |
9192
| **noBar** | `bool` | Set true if you want to remove gray bar | `false` |

index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ declare interface SwipeablePanelProps extends React.Props<SwipeablePanel> {
2424
*/
2525
fullWidth?: boolean;
2626

27+
28+
2729
/**
2830
* Set true if you want to disable black background opacity
2931
*/
@@ -79,6 +81,11 @@ declare interface SwipeablePanelProps extends React.Props<SwipeablePanel> {
7981
*/
8082
barContainerStyle?: object;
8183

84+
/**
85+
* Use this prop to override the small panel default height
86+
*/
87+
smallPanelHeight?: number;
88+
8289
/**
8390
* Set true if you want to make toucable outside of panel
8491
*/

src/typings.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ declare interface SwipeablePanelProps extends React.Props<SwipeablePanel> {
7777
*/
7878
barContainerStyle?: object;
7979

80+
/**
81+
* Use this prop to override the small panel default height
82+
*/
83+
smallPanelHeight?: number;
84+
8085
/**
8186
* Set true if you want to make toucable outside of panel
8287
*/

0 commit comments

Comments
 (0)