Skip to content
Calm motion: animations on this site only fade, with no movement

Search results ​

A results page with the count, the sort, the facets, the results, and the pages

Builds the page that comes after a search. Your search service finds the hits, and this page shows them.

Basic
Filters
Kind

1–3 of 7 results for “passport”

  1. Serviceexample.go.id › services › passport › renew

    Renew your passport online

    Renew an adult passport that ends within the next 9 months.
  2. Guideexample.go.id › guides › passport-fees

    Passport fees for 2026

    The fee for a 48-page passport is Rp 350,000.
  3. Serviceexample.go.id › services › passport › lost

    Lost or stolen passport

    Report a lost passport, then apply for a new one.
  • query is the search. results is the hits of this page only, and total is the number of hits on all pages.
  • Each hit shows as a search result with the search words marked.
  • The status line says the range and the count, such as "11–20 of 32 results". If there are no hits, it says so, and tips follow.
  • facets adds a facet filter on the side, in v-model:selected. On a narrow screen, it goes on top.
  • sorts adds a sort menu in v-model:sort. v-model:page and page-size drive the pagination.
  • suggestion shows "Did you mean" with a button that emits suggest.
  • When a filter or the sort changes, set the page back to 1, as the example does.
  • locale formats the numbers. Change the words with labels or a label pack. The API table lists the keys.

Usage ​

ts
import { BlessSearchResults } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
query*string—
results*BlessSearchHit[]—the hits of this page only
total*number—the number of hits on all pages
pageSizenumber10
facetsBlessFacet[][]
sorts{ value: string; label: string; }[][]
suggestionstring—a better spelling of the search, if your search engine has one
localestring"en"
labelsPartial<{ count: (shown: string, total: string, query: string) => string; none: (query: string) => string; tips: string; sort: string; didYouMean: string; }>—
selectedRecord<string, string[]>{}
sortstring—
pagenumber1

Events

NamePayloadDescription
update:selected[value: Record<string, string[]>]
update:sort[value: string | undefined]
update:page[value: number]
suggest[query: string]

Released under the MIT License. Character names and artwork belong to their owners.