A drawer component for React.
fix: pass `style` to overlay (#139)
Innei03ab9ad5b572
diff --git a/src/index.tsx b/src/index.tsxindex ae3aa01..f91319c 100644--- a/src/index.tsx+++ b/src/index.tsx@@ -655,7 +655,7 @@ function Root({}const Overlay = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>>(- function ({ children, style, ...rest }, ref) {+ function ({ children, ...rest }, ref) {const { overlayRef, snapPoints, onRelease, shouldFade, isOpen, visible } = useDrawerContext();const composedRef = useComposedRefs(ref, overlayRef);const hasSnapPoints = snapPoints && snapPoints.length > 0;