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: src/components/Input/Input.stories.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,11 +49,13 @@ In the example [here](https://design-system.codelitt.dev/?path=/story/components
49
49
2. Regarding the **mask** property, the size of the mask string will determine the size of the valid input.
50
50
On the following object, the key values can be added to the mask string so that their corresponding RegExp strings will be the values accepted on the input. Any character added to the mask that is different from these keys will be permanent and non-editable on the input.
51
51
52
+
```javascript
52
53
{
53
54
'9':'[0-9]',
54
55
'a':'[A-Za-z]',
55
56
'\*':'[A-Za-z0-9]'
56
57
}
58
+
```
57
59
58
60
3. Regarding the **validations** property and its object keys, similar to the filters property above: **type** can either be defined with a value of 'RegExp' or 'function' (both as strings). With each case:
Copy file name to clipboardExpand all lines: src/components/PhoneInput/PhoneInput.stories.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@
17
17
| variablesClassName | string | Receives the class for the actual input to customize its style. | - | false |
18
18
| label | string \| React.ReactNode | Can be used as a [string](https://design-system.codelitt.dev/?path=/story/components-input--default-with-label-text) and allow the engineer to build a [custom label](https://design-system.codelitt.dev/?path=/story/components-input--with-custom-label) and pass it as a parameter. | - | false |
19
19
| localNumber | boolean | Specifies whether the number is local and should default to the country you added or if the API should try to guess the Country you are adding a number for. | - | false |
20
-
| masks |Record<string,string>| Defines a map of masks and its associated country, so you can overwrite the default mask if necessary. | - | false |
20
+
| masks | Record`<string,string>`| Defines a map of masks and its associated country, so you can overwrite the default mask if necessary. | - | false |
21
21
| onChange | (value: string) => void | Calls a function whenever a change in an event of the Phone Input is detected. | - | false |
22
22
| onlyCountries | string[]| Country codes to be included. | - | false |
23
23
| placeholder | string | Defines a custom placeholder. | The default phone mask | false |
0 commit comments