Skip to content

Commit

Permalink
fix incorrect image docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtGokhan committed May 3, 2024
1 parent c9a17a6 commit 7ce1fd6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/content/reference/components/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ layout: API
export default function App() {
const imageAddress = 'https://picsum.photos/200';
return <image
style={{ height: 300, objectFit: 'fit' }}
style={{ height: 300, objectFit: 'contain' }}
source={imageAddress} />;
};
```
Expand All @@ -21,7 +21,6 @@ export default function App() {
### Properties

- **source**: Source of the image. Can be a url, a resource path (e.g. 'res:/path/to/file'), the `Texture2D` object or the `Sprite` object.
- **fit**: Determines how to position the image inside the element.

### Notes

Expand Down

0 comments on commit 7ce1fd6

Please sign in to comment.