Skip to content

Address Display

Free

Shows a postal address the way its country writes it: the right line order, letter case, and country name. Show it as a block or on one line.

  • React Aria
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · MIT + Commons Clause

Playground

Loading the preview

Props

Pass the address fields. Put an AddressDisplayEmpty inside for the words that show when there is no address.

order-addresses.tsx

AddressDisplay

<address>
PropTypeDefaultDescription
variant"block""inline""block"
valueRequired—The fields: name, organization, street, city, region, postalCode, country, ….
hideCountry"auto" | booleanfalseLeave 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.
localestring—The BCP 47 tag of the country name and the upper case. Default: the DisplayLocaleProvider locale, else "en-US".
childrenReactNode—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>
PropTypeDefaultDescription
data-slotstring—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.
  • Pass the fields in value, with country as an ISO 3166-1 code.
  • Use variant="inline" for one line in a row.
  • Use casing="postal" for a shipping label.
  • Use hideCountry="auto" to hide the country of the reader.
  • To type an address, use a Field.

It renders one address element with one span per line, so a copy keeps the lines.

The country name comes from Intl.DisplayNames in the reader's language.

It has no role and no focus.

  1. AddedAddress Display.
Open the release