Typing Search

Search people

Nina Simone

Miles Davis

Herbie Hancock

Joni Mitchell

About this piece

Typing Search

A query gets typed out letter by letter while the list filters live, highlighting the matched text and collapsing rows that no longer fit, then clears and tries another search. Rows take a photo when one is given and fall back to initials.

Usage

The import and the props worth knowing about, in one place.

import { Search25 } from "@/components/beste/piece/search25";

<Search25
  placeholder="Search people"
  queries={[
    "miles",
    "herbie",
    "joni"
  ]}
  results={[
    {
      "title": "Nina Simone",
      "avatar": "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=200&h=200&fit=crop&crop=face"
    },
    {
      "title": "Miles Davis",
      "avatar": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=200&h=200&fit=crop&crop=face"
    },
    {
      "title": "Herbie Hancock",
      "avatar": "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=200&h=200&fit=crop&crop=face"
    },
    {
      "title": "Joni Mitchell"
    }
  ]}
  bordered={false}
/>

More Search pieces

View all Search
design tokens42
ship
shipping address
shipping labels API
shipping zones setup
hania

Hania Rani

Member

Intake notes for Hania Rani

Document

Invoice for Hania Rani

Billing
orielstudio.pt › treatments
Facials in Lisbon | Oriel Skin Studio
Facials, brows and skin consultations in Príncipe Real, Lisbon.
Search the handbookparental leave

Parental leave policy

People

Requesting leave in the calendar

Time off

Coming back after a long leave

People

onboarding