We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8102bf commit 0ed6a96Copy full SHA for 0ed6a96
src/types.ts
@@ -121,7 +121,7 @@ export type Props = {
121
* Handler that is called to get the initial height of the bottom sheet when it's opened (or when the viewport is resized).
122
* @default ({ snapPoints, lastSnap }) => lastSnap ?? Math.min(...snapPoints)
123
*/
124
- defaultSnap?: (props: defaultSnapProps) => number | number
+ defaultSnap?: number | ((props: defaultSnapProps) => number)
125
126
/**
127
* Configures body-scroll-lock to reserve scrollbar gap by setting padding on <body>, clears when closing the bottom sheet.
0 commit comments