PhysicalAddresscomponent

PhysicalAddress({ name, address }: PhysicalAddressProps): ReactElement
ParamType
propsPhysicalAddressProps
Props for PhysicalAddress — an optional name and a nullable AddressData object. required
    .nameNullish<string>
Nullish is the value or null or undefined.
    .addressNullish<AddressData>
Nullish is the value or null or undefined. required
Return
ReactElement

Show an optional AddressData object correctly on screen.

  • Renders an optional name in bold, followed by the formatted address; shows "No address" when address is empty.

Examples

<PhysicalAddress name="Acme" address={addressData} />