Allow className to be set on SidebarItem (#1177)

This commit is contained in:
Oscar Beaumont
2024-12-20 07:44:38 +08:00
committed by GitHub
parent a0c42154df
commit abc3677a58
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"fumadocs-ui": patch
---
Allow `className` to be used with `SidebarItem`
+1 -1
View File
@@ -250,7 +250,7 @@ export function SidebarItem({
<Link
{...props}
data-active={active}
className={cn(itemVariants({ active }))}
className={cn(itemVariants({ active }), props.className)}
prefetch={prefetch}
>
{icon ?? (props.external ? <ExternalLink /> : null)}