mui-tel-input 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,8 +5,13 @@
|
|
|
5
5
|
<div align="center">
|
|
6
6
|
|
|
7
7
|
[](https://github.com/viclafouch/mui-tel-input/blob/master/LICENSE)
|
|
8
|
+

|
|
8
9
|
[](https://www.npmjs.com/package/mui-tel-input)
|
|
9
10
|
[](https://circleci.com/gh/viclafouch/mui-tel-input/tree/master)
|
|
11
|
+
|
|
12
|
+
<div align="center">
|
|
13
|
+
<img src="https://github.com/viclafouch/mui-tel-input/blob/master/mui-tel-input.gif" width="100%" />
|
|
14
|
+
</div>
|
|
10
15
|
|
|
11
16
|
</div>
|
|
12
17
|
|
|
@@ -68,8 +73,9 @@ const MyComponent = () => {
|
|
|
68
73
|
| Name | Type | Description |
|
|
69
74
|
| --------------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
70
75
|
| `value` | `string` | The phone number value (**Required**) |
|
|
71
|
-
| `onChange?` | `(value, info) => void` | Gets called once the user updates the input or selects a new country.
|
|
72
|
-
| `onlyCountries?` | `array` | [Country codes](#country-code) to be included.
|
|
76
|
+
| `onChange?` | `(value, info) => void` | Gets called once the user updates the input or selects a new country. | `defaultCountry?` | `string` | [Country code](#country-code) to be displayed on mount.
|
|
77
|
+
| `onlyCountries?` | `array` | [Country codes](#country-code) to be included.
|
|
78
|
+
| `excludedCountries?` | `array` | [Country codes](#country-code) to be excluded. |
|
|
73
79
|
| `preferredCountries?` | `array` | [Country codes](#country-code) to be highlighted to the top of the list of countries.
|
|
74
80
|
| `continents?` | `array` | [Continent codes](#continent-code) to include a list of countries.
|
|
75
81
|
| `forceCallingCode?` | `boolean` | Force the calling code (e.g: `+33`) to be displayed so the value cannot be empty. Default `false`.
|