Component libraryPhone input

Phone input

Pro

Collect an exact phone value with explicit country context, optional extension and consumer-owned paste parsing.

npx shadcn@latest add @tidal-pro/phone-input
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/phone-input

Import components/ui/tidal.css, components/ui/phone-input.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

label, countries with unique nonblank code/label/dialCode values, controlled country/number/extension value and optional onValueChange are the core contract. Native country select, tel number and optional extension fields preserve exact consumer values and external form/name participation. parsePaste is an optional consumer adapter used only after the native paste handler; returning null rejects the paste. The component does not infer countries, format numbers, validate international numbering plans or claim a universally valid phone number. Native input/select props and refs, disabled/readOnly/required, linked description/error, unknown-country recovery, 44px controls, 16px text, RTL, forced colors and reduced motion are supported. Root aria-disabled is component-owned so it cannot contradict the native controls. Consumers own parsing, validation, serialization, persistence and requests.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.