Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit 402b6e6

Browse files
authored
fix: objectfit prop (#6)
2 parents d241e4d + e009a57 commit 402b6e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/component/base/Img.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const Img = forwardRef<HTMLImageElement, ImgProps>(
1717
<Image
1818
ref={ref}
1919
{...rest}
20+
objectFit={objectFit ?? style?.objectFit}
2021
style={{ objectFit, ...style }}
2122
width={width ?? w}
2223
height={height ?? h}

0 commit comments

Comments
 (0)