
N° 0956 · input
Phone Number Field is an input focus effect. It responds to focus, keyboard, formatting and validation. Palettes: Departures, Terminal, Fjord, Red-eye and Boarding pass.
Each country is [code, name, dial, pattern, min, trunk]; a pattern like '(XXX) XXX-XXXX' takes one digit per X and prints a literal only when a digit follows it, so Backspace never fights a bracket. On input the script counts digits before the caret, reformats, and puts the caret after the same count of digits. Backspace or Delete next to a literal removes the neighbouring digit instead. A leading 0 is dropped where the country has a trunk prefix; a paste starting with + and a known dialling code switches the country. The hidden input carries +<dial><digits> only when the length is valid.
The preview is the shipped element inside a neutral demo page. Hover, click, focus: the one interaction it is about is live.
Token sets re-tint it live. The prompt carries the one you chose.
A paste-in snippet, or a component for Next.js, React, Vue, Astro, WordPress, Shopify or Webflow.
It quotes the markup, styles and script verbatim with the tokens and the rules that keep it self-contained.
It inherits your page's font and width; the tokens live on :root; several instances share one script.

N° 0956 · input

N° 0955 · input

N° 0954 · input

N° 0953 · input

N° 0952 · input

N° 0812 · input

N° 0811 · input

N° 0810 · input

N° 0808 · input

N° 0807 · input

N° 0811 · input

N° 0810 · input

N° 0952 · input

N° 0812 · input

N° 0362 · input

N° 0381 · input