X Enterprises
nuxt-x-blog

SearchInput

Search input for filtering blog posts by title or description.

SearchInput

The XBLSearchInput component provides a debounced text field for filtering blog posts by title and description. Used on the /blog listing page above the post grid.

Components

<XBLSearchInput />

Emits a search event with the current query string. The parent passes the query to useBlog().getPosts({ tag, ... }) or filters client-side.

<XBLSearchInput
  v-model="query"
  placeholder="Search posts..."
  @search="handleSearch"
/>

Props

PropTypeDefaultDescription
modelValuestring''Bound search query (v-model)
placeholderstring'Search...'Input placeholder text
debouncenumber300Debounce delay in milliseconds

Emits

EventDescription
update:modelValuev-model update with the current query string
searchFired (after debounce) with the current query string

AI Context

component: XBLSearchInput
package: "@xenterprises/nuxt-x-blog"
use-when: Filtering blog posts by title or description on the listing page
Copyright © 2026