# Search (Pro)

> A search pill that grows into a palette with filter chips and results.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Components › Navigation |
| Live preview | https://uibrik.com/components/search |
| Writes | 1 file into `components/uibrik/search/` |
| Packages | `@tabler/icons-react`, `motion` (the CLI installs them) |
| Builds on | [squircle](https://uibrik.com/components/squircle.md) (installed with it) |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 9, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/search
```

No license yet? Tell the user Search is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=search#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { SearchPalette } from "@/components/uibrik/search/SearchPalette";

<SearchPalette
  placeholder="Search"
  maxWidth={560}
  searchDelay={500}
  shortcut="k"
  maxRecents={3}
  recentsKey="search-19-recents"
  onSelect={(item) => {}}
  // items={[…]}
/>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/search.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `placeholder` | `string` | `"Search"` | Text on the closed pill and in the empty field. |
| `maxWidth` | `number` | `560` | Widest the open palette gets. |
| `searchDelay` | `number` | `500` | Wait before results show. |
| `shortcut` | `string` | `"k"` | Key that toggles it with ⌘ / Ctrl. Empty disables. |
| `maxRecents` | `number` | `3` | Recent searches kept. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `items` | `SearchItem[]` | `SAMPLE_SEARCH_ITEMS` | Searchable items: id, title, scope, type and date. |
| `onSelect` | `(item: SearchItem) => void` |  | Called when a result is picked. |
| `recentsKey` | `string` | `"search-19-recents"` | localStorage key for recent searches. |
| `className` | `string` |  | Classes for the wrapper. |

## Where it fits

- **Docs and blog search**: A search pill growing into a palette with filter chips finds content fast. Pairs with [Command Menu](https://uibrik.com/components/command-menu.md).
- **Product search**: Results and chips in one panel suit stores and content libraries.
- **Header search**: A compact pill fits a navbar until it is needed. Pairs with [Classic Navbar](https://uibrik.com/components/classic-navbar.md).

## Same shelf: Navigation

- [Section Pill](https://uibrik.com/components/section-pill.md): A floating pill that names the section you're reading, with a ring for how far down the page you are, and opens into the full list, carrying the current title to its row.
- [Tick Nav](https://uibrik.com/components/tick-nav.md): A section list on a ruler whose ticks swell like a dock under the pointer, sliding each label out with its tick.
- [Collapsing Breadcrumb](https://uibrik.com/components/collapsing-breadcrumb.md): A breadcrumb that folds its middle crumbs into an ellipsis when space runs out and unfolds them in place on hover or tap, each crumb sliding open to its own width.
- [Fold Toolbar](https://uibrik.com/components/fold-toolbar.md): An icon button that unfolds into a tray of tools, pushing its neighbours aside, and folds back into whichever tool you pick.
- [Hamburger Sheet](https://uibrik.com/components/hamburger-sheet.md): A menu button that grows into its own sheet: the shape unfolds from the button's corner while the three lines cross into the close mark.
- [Large Title Header](https://uibrik.com/components/large-title-header.md): A large page title that rides up with the content and docks into the top bar as you scroll, moving and scaling as one piece, with the bar filling in behind it.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/search/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
