Skip to content

Commit 2ee78d4

Browse files
committed
fix(image): source can accept resource paths, color tints the image
1 parent a595296 commit 2ee78d4

File tree

1 file changed

+5
-1
lines changed
  • src/content/reference/components

1 file changed

+5
-1
lines changed

src/content/reference/components/image.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,9 @@ export default function App() {
2020

2121
### Properties
2222

23-
- **source**: Source of the image. Can be a url, the `Texture2D` object or the `Sprite` object.
23+
- **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.
2424
- **fit**: Determines how to position the image inside the element.
25+
26+
### Notes
27+
28+
- The css `color` property can be used to tint the image.

0 commit comments

Comments
 (0)