diff --git a/src/BottomSheet.tsx b/src/BottomSheet.tsx
index 83234c94..3f5556c7 100644
--- a/src/BottomSheet.tsx
+++ b/src/BottomSheet.tsx
@@ -69,6 +69,7 @@ export const BottomSheet = React.forwardRef<
onSpringEnd,
reserveScrollBarGap = blocking,
expandOnContentDrag = false,
+ springConfig,
...props
},
forwardRef
@@ -173,6 +174,7 @@ export const BottomSheet = React.forwardRef<
friction,
friction + (friction - friction * velocity)
),
+ ...springConfig,
},
onRest: (...args) => {
resolve(...args)
@@ -180,7 +182,7 @@ export const BottomSheet = React.forwardRef<
},
})
),
- [set]
+ [set, springConfig]
)
const [current, send] = useMachine(overlayMachine, {
devTools: debugging,
diff --git a/src/types.ts b/src/types.ts
index a572656b..576f0a76 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,3 +1,5 @@
+import { SpringConfig } from "react-spring";
+
export type SnapPointProps = {
/**
* The height of the sticky header, if there's one
@@ -150,7 +152,7 @@ export type Props = {
* @default expandOnContentDrag === false
*/
expandOnContentDrag?: boolean,
-} & Omit<React.PropsWithoutRef<JSX.IntrinsicElements['div']>, 'children'>
+} & Omit<React.PropsWithoutRef<JSX.IntrinsicElements['div']>, 'children'> & { springConfig?: SpringConfig }
export interface RefHandles {
/**