Phone Input
Format Sample
A phone field with a shown format sample instead of a hard mask: the input accepts any notation while the expected shape stays visible below.
What you can change
- the field name through label, the sample through example and the format wording through note
- the focus color through accent
- the sample's monospace stack through the --vibeui-phoneinput-005-mono variable
A link for your AI agent: preview, code and instructions.
Preview
Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.ru/c/phoneinput-005?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
The component is self-contained: one file, zero dependencies, the palette in the local --vibeui-phoneinput-005-* variables. Server component: useId is the only hook, there is no state. Instead of a mask it shows a sample: the example is set in a monospace face and wrapped in <samp> so that it is confused with neither the typed value nor the caption. The field does not restrict input — brackets, dashes and spaces are allowed, so a number from the clipboard is pasted without a fight. Both lines under the field are tied to it through aria-describedby by listing the identifiers, so both the sample and the note are read aloud. The pattern attribute is deliberately left out: it rejects valid numbers written differently.
Tags
- phone
- format
- hint
- paste
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…