Search Input With Icon

A premium search input with a focused state and an icon that becomes a submit action as you type.

Add to your project

1Connect the Uniquel MCP

Connect Uniquel to your coding agent before using the component ID.

Connect MCP

2Copy the component ID

MCP ID
component:input/search-input-with-icon

Works with your AI tools

ClaudeClaude*
CodexCodex*
LovableLovable
Base44Base44
Figma MakeFigma Make
ReplitReplit*
CursorCursor*
v0v0

* Compatible with most projects that use the default React/Next.js framework.

Built With

ReactTailwind CSSLucide

Props

PropTypeDescription
onSearch(query: string) => voidCalled when the form is submitted with a search query
valuestringControlled search query
defaultValuestringInitial query when uncontrolled
placeholderstringText shown before a query is entered
disabledbooleanDisables the input and submit action
classNamestringStyles for the outer form

More Input Components

React Number Input preview

Labeled React number input with an optional unit, stacked controls, bounds, and empty values.

React Search Bar preview

Accessible React search bar with highlighted results, keyboard navigation, and polished loading and empty states.

A six-digit PIN input with paste support and keyboard navigation for verification codes.

1500
0

A vertical range input with configurable value labels, thumb shapes, colors, and height.

A minimalist input spinner for choosing quantities with buttons, typing, or arrow keys.