From 3b77a551de7c11ade6055f029121df7c35eff08a Mon Sep 17 00:00:00 2001 From: Lendemor Date: Tue, 30 Jan 2024 21:13:46 +0100 Subject: [PATCH] fix kebab case for icon --- 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 fc2667795f..5476ae662b 100644 --- a/reflex/components/lucide/icon.py +++ b/reflex/components/lucide/icon.py @@ -55,7 +55,8 @@ def create(cls, *children, **props) -> Component: 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)