Carregando…
Carregando…
Carregando…International phone number input with country code selector and flag icons.
$ npx kikitocn add phone-input@/lib/utilsimport { PhoneInput } from "@/components/ui/cn/phone-input/PhoneInput";
export function PhoneInputExample() {
return (
<PhoneInput />
);
}| Prop | Tipo | Padrão | Descrição |
|---|---|---|---|
value | string | undefined | Número completo com código do país (controlled) |
defaultValue | string | undefined | Número inicial (uncontrolled) |
onChange | (value: string) => void | undefined | Callback quando o número muda |
placeholder | string | undefined | Texto placeholder do campo numérico |
size | 'sm' | 'md' | 'lg' | 'md' | Tamanho do input |
disabled | boolean | false | Desabilita o campo |
defaultCountry | string | 'US' | Código ISO do país padrão (ex: 'BR') |
Phone Input — country selector with dial code