Skip to content
nexubDesign System
v11.9.0

Patterns · Pages

Search results

SearchResultsPageSearchScreen

Search results: the query field, result types as tabs, a count that is announced, the query marked in titles and excerpts, paging, and suggestions when nothing matches.

Web

Live, at a real viewport width. Switch to Phone to see the responsive layout.

Usage

TSX
import { SearchResultsPage } from '@nexub/patterns';

<SearchResultsPage
  query={query}
  onQueryChange={setQuery}
  onSubmit={search}
  results={results}
  total={total}
  page={page}
  pageSize={10}
  onPageChange={setPage}
  kinds={[{ id: 'all', label: 'All', count: total }, { id: 'people', label: 'People' }]}
  kind={kind}
  onKindChange={setKind}
  suggestions={['invoice', 'invoice template']}
  loading={isLoading}
/>