Skip to content

Commit

Permalink
[@mantine/core] Image: Change fit prop type to include all possible…
Browse files Browse the repository at this point in the history
… object-fit values (mantinedev#2245)
  • Loading branch information
ryuhangyeong authored and nmay231 committed Aug 28, 2022
1 parent dc49a42 commit 128f5a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-core/src/Image/Image.tsx
Expand Up @@ -23,7 +23,7 @@ export interface ImageProps
alt?: string;

/** Image object-fit property */
fit?: 'contain' | 'cover';
fit?: React.CSSProperties['objectFit'];

/** Image width, defaults to 100%, cannot exceed 100% */
width?: number | string;
Expand Down

0 comments on commit 128f5a1

Please sign in to comment.