Pass the address fields. Put an AddressDisplayEmpty inside for the words that show when there is no address.
order-addresses.tsx
AddressDisplay
<address>| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "block""inline" | "block" | |
| value | — | The fields: name, organization, street, city, region, postalCode, country, …. | |
| hide | "auto" | boolean | false | Leave out the country line: true, false (default), or "auto", which leaves it out when the country is the region of the locale (a US address for an en-US reader). |
| script | "auto""latin""local" | "auto" | The line order: auto (default) takes the Latin-script order of a country that has one when every letter is Latin ("1-1 Marunouchi" in Japan), local the country's own order, latin the Latin order. |
| casing | "as-given""postal" | "as-given" | as-given (default): the fields keep the case the person typed ("London"). postal: the fields that the country's post writes in upper case ("LONDON" over "SW1A 2AA" in the United Kingdom, every line in Canada), for a shipping label. |
| locale | string | — | The BCP 47 tag of the country name and the upper case. Default: the DisplayLocaleProvider locale, else "en-US". |
| children | ReactNode | — | An AddressDisplayEmpty part: the words of no value. With a value, they are not drawn. |
| ...props | <address> attributes | — | Every other attribute goes to the <address>, with a ref. |
AddressDisplayEmpty
<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. |





