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
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -231,6 +231,22 @@ render((
231
231
232
232
If you're curious how this could ever be useful, have a look at the [Kinto formbuilder](https://github.com/Kinto/formbuilder) repository to see how it's used to provide editing capabilities to any form field.
233
233
234
+
## Custom buttons
235
+
236
+
You can provide custom buttons to your form via the `Form` component's `children`. A default submit button will be rendered if you don't provide children to the `Form` component.
237
+
238
+
```jsx
239
+
render(
240
+
<Form schema={schema}>
241
+
<div>
242
+
<button type="submit">Submit</button>
243
+
<button>Cancel</button>
244
+
</div>
245
+
</Form>);
246
+
```
247
+
248
+
**Warning:** there should be a button or an input with`type="submit"` to trigger the form submission (and then the form validation).
0 commit comments