Playground / Live Demo
Want to see React Forminate in action? Jump into the interactive playground and experiment with form schemas, validation rules, and layouts β all in real-time.
π Try It Liveβ
π Open Playground on CodeSandbox
The playground lets you edit the
formData
schema and see the form update instantly. Itβs a great way to test fields, validation, layouts, and custom components.
π§βπ» Sample Schemaβ
Hereβs an example of what you can play with:
const formData = {
title: "Demo Form",
formId: "demoForm",
fields: [
{
fieldId: "username",
label: "Username",
type: "text",
required: true,
placeholder: "Enter your username",
},
{
fieldId: "subscribe",
label: "Subscribe to newsletter",
type: "checkbox",
},
{
fieldId: "birthdate",
label: "Birthdate",
type: "date",
},
],
};
π» Set Up a Local Playgroundβ
If you'd rather explore locally, follow these steps:
-
Create a new React project using Vite or Create React App.
-
Install the library:
npm install react-forminate
-
Replace the App.tsx content with a basic DynamicForm example.
-
Run the app and experiment with different form schemas!
π Want Ideas?β
Check out the Built-in Fields section to see which fields are available out-of-the-box and how to use them in your playground.
Happy form-building! π