fix(ui): let callers name an icon's slot again

This commit is contained in:
Amruth Pillai
2026-09-29 08:35:34 +02:00
parent bfb19ce56e
commit b775cbc15c
+1 -1
View File
@@ -29,9 +29,9 @@ function Icon({ name, filled = false, size = 20, className, style, ...props }: I
<span
aria-hidden="true"
translate="no"
data-slot="icon"
{...props}
// After the props: `data-icon` is the glyph, so a stray one never blanks it.
data-slot="icon"
data-icon={name}
className={cn("material-symbol", DIRECTIONAL_ICONS.has(name) && "rtl:-scale-x-100", className)}
style={{