iOS-style Search Bar

iOS-style Search Bar: A minimalist search pill that smoothly expands on focus and reveals quick-clear controls with spring animation. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install iOS-style Search Bar

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

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Source files

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

Install

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

Dependencies

  • clsx
  • lucide-react
  • motion
  • react
  • tailwind-merge

Usage

"use client";

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

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

Browse this category