Pass the stored number. Put a PhoneDisplayEmpty inside for a contact with no number.
team-phones.tsx
PhoneDisplay
<a>| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | null | — | The stored number, E.164 ("+14155550132"). An extension may follow (";ext=204" or " ext. 204"). A text that is not a possible number shows as given, with no link and no flag. |
| phone | "auto""international""national" | — | auto (default): the national format when the number's country is the region of the locale ("(415) 555-0132" for an en-US reader), else the international one ("+44 20 7946 0958"). |
| link | boolean | — | Render a tel: link (<a href="tel:+14155550132">). Default false. |
| flag | boolean | — | Show the country flag before the number. Default false; the flags load in their own chunk. |
| extension | string | — | An extension to add ("204"). Wins over one in value. |
| locale | string | — | The BCP 47 tag that picks the home region of auto. Default: the DisplayLocaleProvider locale, else "en-US". |
| metadata | MetadataJson | — | libphonenumber-js metadata, as the Phone Field takes it. Default: the min set. |
| children | ReactNode | — | A PhoneDisplayEmpty part: the words of no value. With a value, they are not drawn. |
| labels | Partial<{ extension: string; }> | — | The words (PHONE_DISPLAY_LABELS), to translate them. Keep the object stable. |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <a> attributes | — | Every other attribute goes to the <a>, with a ref. |
PhoneDisplayEmpty
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| data-slot | string | — | The data-slot of the root: the item's own slot ("time-ago"). Default "empty-value". |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | With link, moves to the number. |
|---|---|
| Enter | With link, opens the tel: link. |
Built with
Installs with Phone Display
- Components
- Country Flag





