Skip to content

Commit aa073c3

Browse files
committed
Adds new prop to control icon size
1 parent 9ef3a59 commit aa073c3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/webapp/app/components/navigation/SideMenuItem.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export function SideMenuItem({
1010
icon,
1111
activeIconColor,
1212
inactiveIconColor,
13+
iconClassName,
1314
trailingIcon,
1415
trailingIconClassName,
1516
name,
@@ -22,6 +23,7 @@ export function SideMenuItem({
2223
icon?: RenderIcon;
2324
activeIconColor?: string;
2425
inactiveIconColor?: string;
26+
iconClassName?: string;
2527
trailingIcon?: RenderIcon;
2628
trailingIconClassName?: string;
2729
name: string;
@@ -47,7 +49,8 @@ export function SideMenuItem({
4749
icon={icon}
4850
className={cn(
4951
"size-5 shrink-0",
50-
isActive ? activeIconColor : inactiveIconColor ?? "text-text-dimmed"
52+
isActive ? activeIconColor : inactiveIconColor ?? "text-text-dimmed",
53+
iconClassName
5154
)}
5255
/>
5356
<motion.div

0 commit comments

Comments
 (0)