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. Phone 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

Phone Input

New

A phone field with a searchable country picker, a flag and dial code, and a number that groups itself as you type.

npx motionsnack add phone-input

Customize

px
px
<PhoneInput />

Props

22 properties

PropertyTypeDefaultDescription
valuestring-Controlled national digits. Leave undefined to let the component manage them.
defaultValuestring''National digits on first render when uncontrolled.
onChange(value: { country, national, e164 }) => void-Called with the country code, the national digits and the full E.164 number on every change.
namestring-Name of a hidden input that submits the E.164 number with a form.
errorColorstringundefinedError colour for both themes. Undefined uses the per-theme pair (#dc2626 light, #ef4444 dark).
countryLabelstring'Country, {country} +{dial}'Name of the country button.
countriesLabelstring'Countries'Name of the country list.
emptyTextstring'No match'Row shown when the search matches no country.
localestring'en-US'Locale that sorts the country list.
idstringgeneratedId of the input.
classNamestring''Extra classes on the wrapper.
labelstring'Phone'Label above the field. Empty hides it.
defaultCountry'CZ' | 'SK' | 'DE' | 'AT' | 'PL' | 'HU' | 'GB' | 'IE' | 'FR' | 'IT' | 'ES' | 'NL' | 'US' | 'CA''CZ'Country picked on first render.
countriesstring''Comma-separated ISO codes that limit the list, e.g. CZ, SK, DE. Empty offers every country.
placeholderstring''Hint inside the empty field. Empty derives one from the country's number pattern.
searchPlaceholderstring'Search country'Hint in the search field of the country list.
helperTextstring'We only call about your project.'Small text under the field. Empty hides it.
errorstring''Error message. Any text switches the field to its error state.
requiredbooleanfalseMarks the field as required.
disabledbooleanfalseDisables the field.
heightnumber48Height of the field (48, or 40 compact).
radiusnumber12Corner radius of the field.

About Phone Input

Phone Input is for contact and booking forms that need a callable number. The button on the left shows the country's flag and dial code and opens a list of countries you can search by name, code or dial code and move through with the arrow keys. As the visitor types, the number groups itself by the country's own pattern, such as 777 123 456 for Czechia or (555) 123-4567 for the United States, and a pasted international number drops its dial code. onChange returns the country, the national digits and the full E.164 number, and a hidden input submits that number with a form. The list can be limited to a few countries, and the whole field shows the library's clear focus outline.

What's included

  • Searchable country list with flags and dial codes
  • Number grouped per country as you type
  • E.164 value for forms and APIs
  • Paste-friendly international numbers
  • Keyboard navigation and Escape to close
  • Helper text, required and error states
  • 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 phone-input