fix kebab case for icon (#2487)
This commit is contained in:
parent
8ecfd07668
commit
0b3693f744
@ -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])}, ..."
|
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."
|
"\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']}"
|
props["alias"] = f"Lucide{props['tag']}"
|
||||||
return super().create(*children, **props)
|
return super().create(*children, **props)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user