vibran

Brazilian phone input

Also called: DDD mask

A phone field with the Brazilian flag and +55, a mask that formats as (31) 98888-7766 while typing, DDD (area code) validation showing the state, and a mobile or landline tag. Accepts pasted numbers with +55, spaces and dashes.

Preview of Brazilian phone input running live
Copy the promptAdjust colors and speed

When to use it

Any Brazilian form that asks for a mobile or phone number: quotes, signup, delivery. The hidden field named by data-nome carries only digits with 55 in front, ready for a WhatsApp wa.me link. data-tipo="celular" rejects landlines. For other countries, swap the flag and mask.

How to add it to your site

  1. Copy the prompt in the gallery. It comes with the effect's name and the full code. The prompt text is written in Portuguese, and AI builders handle that fine.
  2. Paste it into your AI: Lovable, Claude, Cursor, Bolt or v0.
  3. Done: the AI adds the effect to your project, just like you saw it here.

Use it in HTML

The effect is plain JavaScript, no library. Just put the data-efeito attribute on the element:

<div data-efeito="telefone-br"><label for="zap">WhatsApp</label><input id="zap" type="tel"></div>

More inputs effects

All 14 inputs effects →