We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e086fe1 commit dcc5d0fCopy full SHA for dcc5d0f
1 file changed
apps/webapp/app/components/navigation/SideMenuItem.tsx
@@ -10,6 +10,8 @@ export function SideMenuItem({
10
icon,
11
activeIconColor,
12
inactiveIconColor,
13
+ trailingIcon,
14
+ trailingIconClassName,
15
name,
16
to,
17
badge,
@@ -19,6 +21,8 @@ export function SideMenuItem({
19
21
icon?: RenderIcon;
20
22
activeIconColor?: string;
23
inactiveIconColor?: string;
24
+ trailingIcon?: RenderIcon;
25
+ trailingIconClassName?: string;
26
name: string;
27
to: string;
28
badge?: ReactNode;
@@ -68,6 +72,12 @@ export function SideMenuItem({
68
72
{badge}
69
73
</motion.div>
70
74
)}
75
+ {trailingIcon && !isCollapsed && (
76
+ <Icon
77
+ icon={trailingIcon}
78
+ className={cn("ml-1 size-4 shrink-0", trailingIconClassName)}
79
+ />
80
+ )}
71
81
82
</Link>
83
}
0 commit comments