From 0b3693f744c008620a41ed2375ee543311a453f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Brand=C3=A9ho?= Date: Tue, 30 Jan 2024 23:31:47 +0100 Subject: [PATCH] fix kebab case for icon (#2487) --- reflex/components/lucide/icon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reflex/components/lucide/icon.py b/reflex/components/lucide/icon.py index fc2667795..5476ae662 100644 --- a/reflex/components/lucide/icon.py +++ b/reflex/components/lucide/icon.py @@ -55,7 +55,8 @@ class Icon(LucideIconComponent): f"Invalid icon tag: {props['tag']}. Please use one of the following: {', '.join(LUCIDE_ICON_LIST[0:25])}, ..." "\nSee full list at https://lucide.dev/icons." ) - props["tag"] = format.to_title_case(props["tag"]) + "Icon" + + props["tag"] = format.to_title_case(format.to_snake_case(props["tag"])) + "Icon" props["alias"] = f"Lucide{props['tag']}" return super().create(*children, **props)