interface SearchBarProps

Passed to SearchBar by AppHeader, which holds the query and decides where a search leads.

Properties

expanded: boolean
value: string
onValueChange: (v: string) => void
onSubmit: (q: string) => void

Called with the trimmed query, never an empty one.

onCancel: () => void

Called when Escape is pressed in the input.

Usage

import { type SearchBarProps } from "src/components/layout/SearchBar.tsx";