Add docs for pc.image (#1203)

This commit is contained in:
Elijah Ahianyo 2023-06-16 18:20:43 +00:00 committed by GitHub
parent f9956cde1e
commit 32adf7c428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,10 +39,13 @@ class Image(ChakraComponent):
# "eager" | "lazy"
loading: Var[str]
# The image src attribute.
# The path/url to the image or PIL image object.
src: Var[Any]
# The image srcset attribute.
# Provide multiple sources for an image, allowing the browser
# to select the most appropriate source based on factors like
# screen resolution and device capabilities.
# Learn more _[here](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images)_
src_set: Var[str]
def get_triggers(self) -> Set[str]: