PhysicalAddresscomponent
PhysicalAddress({ name, address }: PhysicalAddressProps): ReactElement| Param | Type | |
|---|---|---|
props | PhysicalAddressProps | Props for PhysicalAddress — an optional name and a nullable AddressData object. required |
.name | Nullish<string> | Nullish is the value or null or undefined. |
.address | Nullish<AddressData> | Nullish is the value or null or undefined. required |
| Return | |
|---|---|
ReactElement |
Show an optional AddressData object correctly on screen.
- Renders an optional
namein bold, followed by the formatted address; shows "No address" whenaddressis empty.
Examples
<PhysicalAddress name="Acme" address={addressData} />