🤎 Enjoying my work? Buy me a coffee to support my coding adventures! ☕


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 nyxbui@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.