search-button.tsx

src/components/navbar-3/search-button.tsx
import { useEffect, useState, type ReactElement } from 'react'
import searchIcon from '@iconify/icons-lucide/search'
import clsx from 'clsx'
import { Icon } from '@/components/icon'
import { Search } from '@/components/search'
/**
* Search button component with dropdown
* Toggles Search visibility and positions it absolutely
* Manages its own state internally
* @returns {ReactElement} Search button with dropdown
*/
export function SearchButton({
enableShortcut = false,
dark = false,
}: {
enableShortcut?: boolean
dark?: boolean
}): ReactElement {
const [isSearching, setIsSearching] = useState(false)

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC