From 9d53f4c1e1fe04648d691148999fb847855258c4 Mon Sep 17 00:00:00 2001 From: Nikhil Rao Date: Fri, 4 Aug 2023 17:05:16 -0700 Subject: [PATCH] Add alt tag for images (#1524) --- reflex/components/media/image.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reflex/components/media/image.py b/reflex/components/media/image.py index 48fb87ad9..e1ed4454e 100644 --- a/reflex/components/media/image.py +++ b/reflex/components/media/image.py @@ -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.