Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA search field that grows out of a round glass icon capsule: the capsule stretches into a full refractive bar on a spring, a cancel button slides in, and a frosted dropdown unfolds with a scope selector whose pill slides between tabs, recent searches you can remove, suggestion chips that pop in with a stagger and fuzzy results with highlighted matching letters. It follows the combobox pattern with arrow keys, Enter and Escape, opens with slash or Ctrl/Cmd+K, and falls back to frosted blur without SVG backdrop filters and to instant changes under reduced motion.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { SearchBarMorphScene } from "@/components/hyperblur-pro/search-bar-morph"
<SearchBarMorphScene />
<SearchBarMorph
results={items}
suggestions={["Golden hour", "Mountains"]}
onSubmit={(q, scope) => runSearch(q, scope)}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| backdrop | string | "https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b" | SearchBarMorphScene: city photo behind the glass window. |
| photos | string[] | 8 Unsplash photos | SearchBarMorphScene: tiles in the library grid and result thumbnails. |
| title / subtitle | string | "Search that unfolds." | SearchBarMorphScene: heading and paragraph. |
| startOpen | boolean | true | SearchBarMorphScene: begin with the bar expanded. |
| open / defaultOpen / onOpenChange | boolean | false | SearchBarMorph: controlled or uncontrolled expanded state. |
| value / onChange | string | "" | SearchBarMorph: the query. |
| scopes / scope / onScopeChange | string[] / string | All, Photos, Places, People | SearchBarMorph: scope tabs; the first one means everything. |
| results / suggestions / defaultRecents | SearchResult[] / string[] / string[] | [] | SearchBarMorph: searchable items (title, scope, meta, image), chips and recent queries. |
| onSubmit / onSelect | (q, scope) => void / (result) => void | undefined | SearchBarMorph: Enter on the query or choosing a result. |
| appearance / accent / refraction | "light" | "dark" | "auto" / string / number | "light" / "#0a84ff" / 1 | Glass tint, highlight color and lens strength. |
Source code is included in Pro and above