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: docs/api.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -264,6 +264,8 @@ Customize the form by providing your own markup.
264
264
```
265
265
266
266
**Important:** To use a custom field component the name of the component must contain one of these three words: `text`, `input` or `field`.
267
+
Alternatively, the component can have arbitrary name if it has the `spInputLike` (or `data-spInputLike`) property set. If you minify your code,
268
+
prefer using this property to relying on the component name, as the latter may be mangled by the minifier.
267
269
The component must also support the properties `name` and `onChange`. The property `name` should represent the name of the field, and the
268
270
`onChange` property a handler for the field's `onChange` event.
269
271
@@ -349,7 +351,7 @@ Specify `hideSocial` to hide the ability to register with a social provider.
349
351
<RegistrationFormhideSocial={true} />
350
352
```
351
353
352
-
Customize the form by providing your own markup.
354
+
Customize the form by providing your own markup.
353
355
354
356
By default, the registration form will render these four fields, and they will be required by the user: `givenName`, `surname`, `email`, and `password`. Express.js users who want to make `givenName` and/or `surname` optional, or to add new required fields (like `username`), can refer to [Stormpath Express Library Guide](https://docs.stormpath.com/nodejs/express/latest/registration.html).
0 commit comments