Add alt tag for images (#1524)

This commit is contained in:
Nikhil Rao 2023-08-04 17:05:16 -07:00 committed by GitHub
parent 134df9dbaa
commit 9d53f4c1e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,9 @@ class Image(ChakraComponent):
# The path/url to the image or PIL image object.
src: Var[Any]
# The alt text of the image.
alt: Var[str]
# Provide multiple sources for an image, allowing the browser
# to select the most appropriate source based on factors like
# screen resolution and device capabilities.