From 32adf7c428ca41a345caa26f5afe71787a5cf6c7 Mon Sep 17 00:00:00 2001 From: Elijah Ahianyo Date: Fri, 16 Jun 2023 18:20:43 +0000 Subject: [PATCH] Add docs for pc.image (#1203) --- pynecone/components/media/image.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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]: