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
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,12 +56,12 @@ All of these props are optional and some also come with a default value. However
56
56
| autoFocus | Boolean |`false`| Focus the input automatically as soon as it is rendered. |
57
57
| removeDefaultStyles | Boolean |`false`| Completely remove any styles that are not required for the component to work properly. This is useful if you want to override the default styles (see [Custom Styling](#custom-styling)). |
58
58
| debug | Boolean |`false`| Reveal what is going on behind the scenes, which might come in handy when trying to better understand the component. Obviously you don't want to use this in production. 😄 |
59
-
| inputProps | Object |`{}`| These props get forwarded to the input element. |
59
+
| inputProps | Object |`{}`| The properties of this object get forwarded as props to the input element. |
60
+
| containerProps | Object |`{}`| The properties of this object get forwarded as props to the container element. |
60
61
| classNames | Object |`{}`| CSS class names to add to the specified elements. For more details see [Custom Styling](#custom-styling). |
61
62
| onChange | Function | - | Callback function that gets called with the string value whenever it changes. |
62
63
| onFocus | Function | - | Callback function that gets called when the component obtains focus. |
63
64
| onBlur | Function | - | Callback function that gets called when the component loses focus. |
64
-
| (any other prop) | Any | - | Any props not listed above will be directly forwarded to the `container` element. |
65
65
66
66
## Custom Styling
67
67
@@ -122,6 +122,12 @@ Have a look at this example:
122
122
}
123
123
```
124
124
125
+
## Migration Guide: `v2` --> `v3`
126
+
127
+
-**Additional props**
128
+
129
+
Custom props are no longer forwarded to the container element. Use the new prop `containerProps` instead and specify the custom props in object literal form.
0 commit comments