

Every state


default


focus


unselected


error


gb


us


disabled
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| id | string | "address-home" | Id of the radio. |
| name | string | "delivery-address" | Radio group name: cards with the same name form one choice. |
| value | string | "home" | Value submitted when this card is chosen. |
| country | "NL" | "GB" | "DE" | "BE" | "FR" | "US" | "NL" | Line format, country name, dial code and example address. |
| address | Partial<AddressCardAddress> | – | Name, line1, line2, postcode, town, state and phone; merged over the country's example. |
| selected | boolean | true | Starts chosen. |
| isDefault | boolean | true | Shows the Default badge. |
| changeLabel | string | "Change" | Text on the change button. |
| onSelect | (value: string) => void | – | Called when the card is chosen. |
| onChange | (value: string) => void | – | Called by the Change button. |
| error | string | – | A problem with this address, shown in the card. |
| disabled | boolean | – | Disables the radio and the button. |
| className | string | – | Extra classes on the card. |
More address inputs
All 5address-input-02 is in UI ProGet UI Pro, €199


