Provides a responsive collapsible navigation sidebar with mobile support and state persistence.
// Source: https://github.com/creativetimofficial/ui | License: MIT | Copyright 2025 [Creative Tim](https://www.creative-tim.com/)
// Provided via justclaw.it.com; keep this notice with the code.
"use client"
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, VariantProps } from "class-variance-authority"
import { PanelLeftIcon } from "lucide-react"
import { useIsMobile } from "@/registry/creative-tim/hooks/use-mobile"
import { cn } from "@/registry/creative-tim/lib/utils"
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 }
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key