Skip to content

Commit

Permalink
Add a single field form example in the playground (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored and n1k0 committed Nov 12, 2016
1 parent c87b377 commit 83253b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions playground/samples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import large from "./large";
import date from "./date";
import validation from "./validation";
import files from "./files";
import single from "./single";

export const samples = {
Simple: simple,
Expand All @@ -26,4 +27,5 @@ export const samples = {
"Date & time": date,
Validation: validation,
Files: files,
Single: single
};
7 changes: 7 additions & 0 deletions playground/samples/single.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
schema: {
title: "A single-field form",
type: "string",
},
formData: "initial value"
};

0 comments on commit 83253b8

Please sign in to comment.