Skip to content

Commit

Permalink
Better examples of object fit
Browse files Browse the repository at this point in the history
  • Loading branch information
victortrinh2 committed Dec 5, 2024
1 parent 329165d commit 44cbca2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/components/src/Image/tests/chromatic/Image.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ export const Circular = {
export const ObjectFit = {
render: args => (
<Inline>
<Div UNSAFE_width="200px" UNSAFE_height="200px">
<Div UNSAFE_width="200px" UNSAFE_height="100px">
<Image objectFit="fill" {...args} />
</Div>
<Div UNSAFE_width="200px" UNSAFE_height="200px">
<Div UNSAFE_width="200px" UNSAFE_height="100px">
<Image objectFit="contain" {...args} />
</Div>
<Div UNSAFE_width="200px" UNSAFE_height="200px">
<Div UNSAFE_width="200px" UNSAFE_height="100px">
<Image objectFit="cover" {...args} />
</Div>
<Div UNSAFE_width="200px" UNSAFE_height="200px">
<Div UNSAFE_width="200px" UNSAFE_height="100px">
<Image objectFit="scale-down" {...args} />
</Div>
<Div UNSAFE_width="200px" UNSAFE_height="200px">
<Div UNSAFE_width="200px" UNSAFE_height="100px">
<Image objectFit="none" {...args} />
</Div>
</Inline>
Expand Down

0 comments on commit 44cbca2

Please sign in to comment.