You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,19 +54,20 @@ The `valid` function primarily checks if a phone number has a length appropriate
54
54
55
55
Apart from the phone-specific properties described below, all [Input](https://ant.design/components/input#input) properties supported by the used Ant Design version can be applied to the phone input component.
| value | An object containing a parsed phone number or the raw number. This also applies to the `initialValue` property of [Form.Item](https://ant.design/components/form#formitem). | [object](#value) / string |
60
-
| country | Country code to be selected by default. By default, it will show the flag of the user's country. | string |
61
-
| enableSearch | Enables search in the country selection dropdown menu. Default value is `false`. | boolean |
62
-
| searchNotFound | The value is shown if `enableSearch` is `true` and the query does not match any country. Default value is `No country found`. | string |
63
-
| searchPlaceholder | The value is shown if `enableSearch` is `true`. Default value is `Search country`. | string |
64
-
| disableDropdown | Disables the manual country selection through the dropdown menu. | boolean |
65
-
| onlyCountries | Country codes to be included in the list. E.g. `onlyCountries={['us', 'ca', 'uk']}`. | string[] |
66
-
| excludeCountries | Country codes to be excluded from the list of countries. E.g. `excludeCountries={['us', 'ca', 'uk']}`. | string[] |
67
-
| preferredCountries | Country codes to be at the top of the list. E.g. `preferredCountries={['us', 'ca', 'uk']}`. | string[] |
68
-
| onChange | The only difference from the original `onChange` is that value comes first. | function(value, event) |
69
-
| onMount | The callback is triggered once the component gets mounted. | function(value) |
| value | An object containing a parsed phone number or the raw number. This also applies to the `initialValue` property of [Form.Item](https://ant.design/components/form#formitem). | [object](#value) / string |
60
+
| country | Country code to be selected by default. By default, it will show the flag of the user's country. | string |
61
+
| enableSearch | Enables search in the country selection dropdown menu. Default value is `false`. | boolean |
62
+
| searchNotFound | The value is shown if `enableSearch` is `true` and the query does not match any country. Default value is `No country found`. | string |
63
+
| searchPlaceholder | The value is shown if `enableSearch` is `true`. Default value is `Search country`. | string |
64
+
| disableDropdown | Disables the manual country selection through the dropdown menu. | boolean |
65
+
| onlyCountries | Country codes to be included in the list. E.g. `onlyCountries={['us', 'ca', 'uk']}`. | string[] |
66
+
| excludeCountries | Country codes to be excluded from the list of countries. E.g. `excludeCountries={['us', 'ca', 'uk']}`. | string[] |
67
+
| preferredCountries | Country codes to be at the top of the list. E.g. `preferredCountries={['us', 'ca', 'uk']}`. | string[] |
68
+
| dropdownRender | Customize the dropdown menu content. | (menu: ReactNode) => ReactNode |
69
+
| onChange | The only difference from the original `onChange` is that value comes first. | function(value, event) |
70
+
| onMount | The callback is triggered once the component gets mounted. | function(value) |
0 commit comments