Specialized inputs
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.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
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.club/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…
How to use
<Phoneinput005
label="Contact phone"
example="+44 20 7123 4567"
note="Brackets and dashes are fine."
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Label
label· default: Contact phone- Sample
example· default: +44 20 7123 4567- Sample caption
exampleLabel· default: For example:- Note
note· default: Brackets, dashes and spaces are fine — we normalise the number on submit.- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Specialized inputs
FAQ
- How do I add Format Sample with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Format Sample depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Format Sample?
- Adapt: 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. Keep as installed: the local --vibeui-phoneinput-005-* palette — do not swap it for your theme tokens; the absence of pattern and of a mask: strict format checking rejects valid numbers written differently; the <samp> markup for the sample — it is an example, not a typed value and not a second label.
- Is Format Sample free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/phoneinput-005.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
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…