❤️ Support our project - Your donation helps us continue developing awesome tools!


Docs
Input Phone

Input Phone

This component provides phone number input based on the selected country.

About

The InputPhone component is built on top of React Phone Number Input.

Installation

npx nyxb@latest add input-phone

Usage

import { InputPhone } from "~/components/ui/input-phone"
const [value, setValue] = React.useState("")
 
return <InputPhone value={value} onChange={setValue} />

Examples

Default

Setting default country

Setting force international format

Setting force national format

Setting initial value format

Form

Please enter a valid phone number.