nyuchimzizi
Mzizi — an open-architecture project of the Bundu Foundation, operated and developed by Nyuchi. Built on the Five African Minerals palette.
Built by Nyuchi Africav4.0.39
Sidebar with accordion sections.
No interactive demo is registered for this component yet — the source is shown directly.
"use client"
import { useState } from "react"
import { Separator } from "@/components/ui/separator"
import { ChevronDown, Home, Users, Settings, Zap } from "@/lib/icons"
const accordionSections = [
{
title: "Dashboard",
icon: Home,
items: ["Overview", "Analytics", "Reports"],
},
{
title: "Team",
icon: Users,
items: ["Members", "Invitations", "Roles"],
},
{
title: "Settings",
icon: Settings,
items: ["General", "Security", "Notifications", "Billing"],
},
]
function Sidebar11() {
const [open, setOpen] = useState<string | null>("Dashboard")
return (
<aside data-slot="sidebar-block" data-portal="https://design.nyuchi.com/components/sidebar-block" aria-label="Sidebar navigation" className="flex h-screen w-60 flex-col border-r border-border bg-card">
<div className="flex h-14 items-center gap-2 px-4">
<Zap className="size-5 text-cobalt" />
<span className="font-serif text-lg font-semibold text-foreground">mukoko</span>
</div>
<Separator />
<nav className="flex-1 overflow-auto p-3">
{accordionSections.map((section) => (
<div key={section.title} className="mb-1">
<button
onClick={() => setOpen(open === section.title ? null : section.title)}
className="flex w-full items-center gap-3 rounded-[var(--radius-lg,14px)] px-3 py-2 text-sm font-medium text-foreground hover:bg-muted"
>
<section.icon className="size-4" />
<span className="flex-1 text-left">{section.title}</span>
<ChevronDown
className={`size-3.5 text-muted-foreground transition-transform ${
open === section.title ? "rotate-0" : "-rotate-90"
}`}
/>
</button>
{open === section.title && (
<div className="ml-7 space-y-0.5 border-l border-border py-1 pl-3">
{section.items.map((item) => (
<button
key={item}
className="block w-full rounded-[var(--radius-md,12px)] px-3 py-1.5 text-left text-sm text-muted-foreground hover:bg-muted hover:text-foreground"
>
{item}
</button>
))}
</div>
)}
</div>
))}
</nav>
</aside>
)
}
export { Sidebar11 }
The variants, sizes, and props surfaced by the registry. Each is sourced from the Supabase component_docs table.
Hit the registry API live and see the JSON the shadcn CLI consumes when it installs this component.
/api/v1/ui/sidebar-11npx shadcn@latest add https://mzizi.dev/api/v1/ui/sidebar-11components/blocks/sidebar-11.tsx