feat: add SidebarSeparator component and integrate into documentation layout

- Introduced SidebarSeparator component for improved sidebar organization.
- Updated layout configuration to utilize the new SidebarSeparator in the documentation layout.
This commit is contained in:
Anish Sarkar 2026-02-27 02:38:52 +05:30
parent 394a37576c
commit 2468cc2a4a
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,12 @@
"use client";
import type { Separator } from "fumadocs-core/page-tree";
export function SidebarSeparator({ item }: { item: Separator }) {
return (
<p className="inline-flex items-center gap-2 mb-1.5 px-2 mt-6 font-semibold first:mt-0 empty:mb-0">
{item.icon}
{item.name}
</p>
);
}