Skip to content

Commit

Permalink
Drop height prop from example
Browse files Browse the repository at this point in the history
Due to sanity-io/image-url#32, setting a
`height` prop will cause unexpected behavior.
  • Loading branch information
coreyward committed Mar 3, 2021
1 parent a48856f commit 52367fb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const YourSweetComponent = ({ image }) => (
{...image}
// tell Sanity how large to make the image (does not set any CSS)
width={500}
height={300}
// style it how you want it
style={{
width: "100%",
Expand Down

0 comments on commit 52367fb

Please sign in to comment.