examples/sidebar-collapsible.tsx
1import {2 Sidebar,3 SidebarHeader,4 SidebarNav,5 SidebarSection,6 SidebarItem,7 SidebarFooter,8 SidebarToggle,9} from "@/components/wensity/sidebar";10import { IconLayoutDashboard, IconChartAreaLine, IconFolders, IconSettings } from "@tabler/icons-react";1112export function SidebarCollapsible() {13 return (14 <Sidebar variant="collapsible" width={220}>15 <SidebarHeader>16 <span className="text-sm font-semibold">Acme Inc</span>17 <SidebarToggle className="ml-auto" />18 </SidebarHeader>19 <SidebarNav>20 <SidebarSection>21 <SidebarItem icon={<IconLayoutDashboard className="size-[18px]" />} active>22 Dashboard23 </SidebarItem>24 <SidebarItem icon={<IconChartAreaLine className="size-[18px]" />}>Analytics</SidebarItem>25 <SidebarItem icon={<IconFolders className="size-[18px]" />}>Projects</SidebarItem>26 <SidebarItem icon={<IconSettings className="size-[18px]" />}>Settings</SidebarItem>27 </SidebarSection>28 </SidebarNav>29 <SidebarFooter>30 <span className="text-xs text-muted-foreground">jordan@acme.com</span>31 </SidebarFooter>32 </Sidebar>33 );34}