---
title: "iOS-style Search Bar | Free React & Tailwind Craft Component | Motion UI"
canonical: "https://blacknest.dev/motion/c/craft/ios-search-bar"
github_source: "https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/ios-search-bar.tsx"
install_command: "npx motion-ui-skill add ios-search-bar"
dependencies: ["clsx","lucide-react","motion","react","tailwind-merge"]
category: "craft"
subcategory: "craft"
---

# iOS-style Search Bar

> A minimalist search pill that smoothly expands on focus and reveals quick-clear controls with spring animation.

## Install

```bash
npx motion-ui-skill add ios-search-bar
```

## Dependencies

- `clsx`
- `lucide-react`
- `motion`
- `react`
- `tailwind-merge`

## Usage

```tsx
"use client";

import { IOSSearchBar as IosSearchBar } from "@/components/craft/ios-search-bar";

export function Example() {
  return (
    <div className="p-6">
      <IosSearchBar />
    </div>
  );
}
```

## Source Files

- [components/craft/ios-search-bar.tsx](https://github.com/Rkj0123/motion-ui-skill/blob/main/components/craft/ios-search-bar.tsx)
- [lib/utils.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/utils.ts)
- [lib/motion-tokens.ts](https://github.com/Rkj0123/motion-ui-skill/blob/main/lib/motion-tokens.ts)
