motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Input
  5. Search Input
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Input

Search Input

New

A search field with a ⌘K shortcut hint, a spinner while typing and a clear button that pops in.

npx motionsnack add search-input

Customize

ms
px
px
<SearchInput />

Props

19 properties

PropertyTypeDefaultDescription
valuestring-Controlled value. Leave undefined to let the component manage it.
defaultValuestring''Value on first render when uncontrolled.
onChange(value: string) => void-Called with the new text on every change.
onSearch(value: string) => void-Called with the text when the visitor presses Enter.
namestring-Name submitted with a form.
ariaLabelstring-Deprecated alias of label.
idstringgeneratedId of the input.
classNamestring''Extra classes on the wrapper.
placeholderstring'Search projects, services…'Hint inside the empty field.
labelstring'Search'Accessible name of the field and its search landmark (not shown).
shortcutstring'K'Letter of the ⌘ / Ctrl shortcut that focuses the field. Empty turns it off and hides the hint.
shortcutModifierbooleantrueThe shortcut needs ⌘ / Ctrl. Off: the bare key focuses the field, like / on many apps.
loadingbooleanfalseResults are loading: spinner in place of the magnifier after 500ms.
showLoaderbooleantrueDemo: a spinner in place of the magnifier while the visitor types.
loaderDelaynumber600How long the spinner stays after the last keystroke.
clearablebooleantrueShow a button that clears the field.
disabledbooleanfalseDisables the field.
heightnumber48Height of the field.
radiusnumber12Corner radius of the field. 999 makes a pill.

About Search Input

Search Input is a search field for a site, a docs page or a project list. Pressing ⌘K or Ctrl+K anywhere on the page focuses it, and the shortcut hint in the field shows the right key for the visitor's system. While the visitor types, the magnifier cross-fades into a spinner for a moment you set, and once there is text the hint gives way to a clear button. Enter calls onSearch, Escape clears the field. The shape runs from square to pill through one radius prop.

What's included

  • ⌘K / Ctrl+K shortcut with a platform-aware hint
  • Spinner that replaces the magnifier while typing
  • Clear button and Escape to clear
  • onSearch on Enter
  • Square to pill shape
  • Light and dark look
Type
Animated React input component
Library
Components · Input
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add search-input