Skip to content

Commit

Permalink
Fix local image example (#6019)
Browse files Browse the repository at this point in the history
- `aspectRatio` prop requires a `width` or `height` prop

Co-authored-by: BryceRussell <[email protected]>
  • Loading branch information
BryceRussell and BryceRussell authored Jan 29, 2023
1 parent 9c298aa commit b6bed15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ import heroImage from '../assets/hero.png';
<Image src={heroImage} width={300} height={600} alt="descriptive text" />
// cropping to a specific aspect ratio and converting to an avif format
<Image src={heroImage} aspectRatio="16:9" format="avif" alt="descriptive text" />
<Image src={heroImage} width={300} aspectRatio="16:9" format="avif" alt="descriptive text" />
// image imports can also be inlined directly
<Image src={import('../assets/hero.png')} alt="descriptive text" />
Expand Down

0 comments on commit b6bed15

Please sign in to comment.