A phone number input with country picker and formatting; returns E.164.
Import it and pass your content. The props that matter most are listed next.
"use client";
import * as React from "react";
import { PhoneInput } from "@/components/ui/notchset/phone-input";
export function OnCallPhone() {
const [phone, setPhone] = React.useState("");
return (
<form action="/api/on-call" method="post">
<PhoneInput defaultCountry="PT" onValueChange={setPhone} />
<input type="hidden" name="phone" value={phone} />
</form>
);
}defaultCountry / defaultValue–
string / E.164Where to start.
onValueChange–
(e164, country) => voidE.164 once complete, "" until then.
countries–
{ iso, name, dial, groups }[]Your list (22 by default).
error–
stringA server's rejection, in place of the help line.
PhoneInputdata-slot="phone-input"
The field.
listdata-slot="phone-input-root"
Field, help and list.
components/ui/notchset/phone-input.tsx
pnpm dlx shadcn@latest add https://notchset.dev/r/phone-input.jsonpnpm dlx shadcn@latest add https://notchset.dev/r/radix-nova/phone-input.jsonFree, no account or key. Use the command for your project's primitives: a radix-*, new-york or default style in components.json is Radix, a base-* style is Base UI. With the @notchset registry added, @notchset/<name> picks for you.
The CLI adds the styles to the CSS file named in components.json (tailwind.css). Check that it points at your global stylesheet, that the project uses Tailwind CSS v4, and that the file is imported in your root layout. Installed by hand: paste styles.css into that file.
Give your coding assistant the Markdown guide instead of screenshots.
https://notchset.dev/api/mcp (setup)v1.0.0 · 2026-10-02
First release