interface QSearchProps extends Omit< HTMLInputAttributes, "value" | "type" | "children" | "onsearch" >
?: boolean = undefined?: Partial<QSearchLabels> = undefined
?: "auto" | "docked" | "fullscreen" = "auto"?: boolean = false?: (query: string) => void = undefined?: boolean = $bindable(false)
?: HTMLInputAttributes["placeholder"] = undefined
?: string = undefined?: string = $bindable("")
value to filter results as someone types. The default auto layout opens a docked view on larger screens and fills the screen below 600px. Combine search
with filter chips to help people narrow a broad collection. This example uses expressive={false} for a divided view, with a divider below its search field.THE SLOW ROUTE · LOCAL GUIDE
A warm indoor garden with towering ferns and a quiet reading bench.
12 min walk · Gardensonsearch for submitted queries. Type a term and press Enter, or choose a
recent search. Results stay unchanged while the next query is being edited. The search snippet function submits a suggestion through the same callback. expressive gives the search field its own contained shape in the open view.THE WORKING NOTEBOOK · 4 DOCUMENTS
People wanted one clear next step. We shortened the introduction and moved optional setup until after the first useful action.
layout="fullscreen" for a more immersive search. Results can include independent
actions: open a recording's notes or bookmark it without leaving search. These sample recordings
have descriptions only; no audio is loaded.FIELD NOTES · A SOUND JOURNAL
Soft rain, distant birds, and the occasional creak of the greenhouse frame.
Botanical gardens · 8:24The default placeholder and accessible labels follow the language pack and translations.search configured with Quaff.init(). Use placeholder and labels to override them for an individual search.
Give each search a meaningful aria-label. QSearch manages the search field,
opening and closing the view, focus restoration, and the clear action. Your application
supplies filtering and result content through the children snippet; use status for a short result-count announcement.
Press Enter to submit a query and Escape to close the view. Tab reaches filters and result
actions. The examples reuse QList and QItem for arrow-key
navigation inside a result list. Call the snippet's close function after choosing
a result when the next step belongs outside search.