<pagefind-input>

A search input field with debouncing.

<pagefind-input></pagefind-input>

Attributes

AttributeTypeDefaultDescription
placeholderstringLanguage dependentPlaceholder text shown when input is empty
debouncenumber300Milliseconds to wait after typing before searching
autofocusbooleanfalseFocus input when page loads
instancestring"default"Connect to a specific Pagefind instance

Behavior

  • Focusing the input begins loading the Pagefind search bundle
  • When search is triggered by other components, this input’s value is automatically updated
  • When focused, the input registers keyboard shortcuts with the instance

Keyboard Behavior

KeyAction
EscapeClear the input and reset search
Move focus to the results list
Components