mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
Allow className to be set on SidebarItem (#1177)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"fumadocs-ui": patch
|
||||
---
|
||||
|
||||
Allow `className` to be used with `SidebarItem`
|
||||
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user