feat: add search functionality to mobile navigation (#4487)

This commit is contained in:
KinfeMichael Tariku
2025-09-09 03:21:06 +03:00
committed by Alex Yang
parent b531dbb272
commit 7d6d4da92b
4 changed files with 39 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
"use client";
import { ChevronRight, Menu } from "lucide-react";
import { ChevronRight, Menu, Search } from "lucide-react";
import Link from "next/link";
import { Fragment, createContext, useContext, useState } from "react";
import {
@@ -11,6 +11,7 @@ import {
import { contents, examples } from "./sidebar-content";
import { usePathname } from "next/navigation";
import { cn } from "@/lib/utils";
import { useSearchContext } from "fumadocs-ui/provider";
interface NavbarMobileContextProps {
isOpen: boolean;