Saudi and bilingual kit
PhoneText
A stored phone number for display: grouped, left to right, as a call link, with an optional WhatsApp link. A value that is not a valid GCC number shows as it is, without links.
import { PhoneText, formatPhone, phoneLinks } from "@percentsa/ui";Examples
Code
export function PhoneTextExample() {
return (
<Stack gap={2}>
<PhoneText value="0550000999" whatsapp />
<PhoneText value="+97430000999" style="national" />
<PhoneText value="12" />
</Stack>
);
}