Search
A premium, fully reusable Search component primitive with smooth animations, advanced variants, and highly configurable API.
uiNew Releaseclass-variance-authorityframer-motionlucide-react
Installation
$npx futureuikit add search
Import
import { Search } from "@/components/ui/search"
Layout Variant
Color Theme
Size
Options
Named Keys & Props
Pass these exact named keys as props on <Search />. Click any color pill to copy the prop.
colorDefault is "default"(Black & White)variantVisual style"standard""compact""floating""command""icon"shapeCorner shape"default""square""rounded""sharp"sizeComponent size"sm""md""lg""xl""2xl"Usage Example
A basic implementation example to get you started.
Example Implementation
import { Search } from"@/components/ui/search";
export default function Example() {
return (
<div className="w-full max-w-sm">
<Search variant="floating"size="md"placeholder="Search..."clearable animated />
</div>
);
}Features
Key capabilities and highlights.
Key Capabilities
- ◆Cinematic width expansion and focus ring animations using Framer Motion.
- ◆Multiple premium variants: standard, compact, floating, command, and icon-only.
- ◆Highly configurable API (sizes, states, loading, clearable).
- ◆Proper ARIA accessibility and keyboard shortcut management (Escape, Enter).
Notes
Important implementation details to consider.
Implementation Details
- ◆Install: Run'npx futureuikit add search'.
- ◆Dependencies: Requires framer-motion and lucide-react.
- ◆Usage: Use as a generic UI primitive anywhere you need search inputs.