Menu

A simple phone input with country flags, dial codes, and a number field.
📰

A simple phone input with country flags, dial codes, and a number field.

DEV Community: react·Joodi·3 days ago
#wV4UgY65
#devtoreact#devto#dev#phone#country
Reading 0:00
15s threshold

Joodi

A lot of phone inputs require installing a large library.

But if you only need a country selector and a number field, why add the extra weight?

SonoJS Phone Input keeps it simple: country selection, dial codes, optional country flags, and a phone number field. No phone validation package required.

npx @sonojs/ui@latest add phone-input

Enter fullscreen mode Exit fullscreen mode

Live demo: https://sonojs.com/docs/components/phone-input