Skip to content

Commit 83253b8

Browse files
Julien Bouquillonn1k0
authored andcommitted
Add a single field form example in the playground (rjsf-team#390)
1 parent c87b377 commit 83253b8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

playground/samples/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import large from "./large";
1111
import date from "./date";
1212
import validation from "./validation";
1313
import files from "./files";
14+
import single from "./single";
1415

1516
export const samples = {
1617
Simple: simple,
@@ -26,4 +27,5 @@ export const samples = {
2627
"Date & time": date,
2728
Validation: validation,
2829
Files: files,
30+
Single: single
2931
};

playground/samples/single.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
schema: {
3+
title: "A single-field form",
4+
type: "string",
5+
},
6+
formData: "initial value"
7+
};

0 commit comments

Comments
 (0)