useSidebar (ui/sidebar.tsx)

free-nextjs-admin-dashboard · src/components/ui/sidebar.tsx · typescript · MIT
ui

Manage app layout with a fully functional sidebar, mobile drawer, and persistence.

// Source: https://github.com/TailAdmin/free-nextjs-admin-dashboard | License: MIT | Copyright 2023 TailAdmin
// Provided via justclaw.it.com; keep this notice with the code.
"use client";

import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Separator } from "@/components/ui/separator";
import {
  Sheet,
  SheetContent,
  SheetDescription,
  SheetHeader,
  SheetTitle,
} from "@/components/ui/sheet";
import { Skeleton } from "@/components/ui/skeleton";
import {
  Tooltip,
  TooltipContent,
  TooltipTrigger,
} from "@/components/ui/tooltip";
import { useIsMobile } from "@/hooks/use-mobile";
import { usePathname } from "@/i18n/navigation";
import { MenuTwoIcon } from "@/icons";
import { cn } from "@/utils";
import { mergeProps } from "@base

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key