diff --git a/packages/react/lib/Slot.tsx b/packages/react/lib/Slot.tsx index d97c545..6d118b3 100644 --- a/packages/react/lib/Slot.tsx +++ b/packages/react/lib/Slot.tsx @@ -85,7 +85,10 @@ export const Slot = React.forwardRef< return null; } return React.cloneElement(children, { - ...mergeReactProps(safeSlotProps, children.props), + ...mergeReactProps( + safeSlotProps, + children.props as Record, + ), ref: combinedRef([ ref, (children as unknown as { ref: React.Ref }).ref,