diff --git a/pynecone/components/media/image.py b/pynecone/components/media/image.py index 4d62353e9..1513386d1 100644 --- a/pynecone/components/media/image.py +++ b/pynecone/components/media/image.py @@ -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]: