A React app that renders a form from a JSON schema. Paste a schema into the text area, click Render UI, and the form appears in the preview panel. Submitting the form shows the entered values as JSON.
A sample schema is included in pasta.json (a "Create Pasta" form).
- Paste a JSON schema and render it as a form with one click
- Alert with the error message if the JSON is not valid
- Fields are ordered by the
sortvalue in the schema - Supported field types (
uiType):Input- text field, withplaceholderandrequiredSelect- dropdown withoptionsand a default valueGroup- a box with a label that holds nested fields (works recursively)
- Submit collects the form values by
jsonKeyand shows them as JSON below the form
React 18, Vite and Tailwind CSS.
Requires Node.js and npm.
git clone https://github.com/Aalia98/JSON-Form-Renderer.git
cd JSON-Form-Renderer
npm install
npm run dev
Then copy the contents of pasta.json into the text area and click Render UI.
- Only
Input,SelectandGroupare supported; other field types are not rendered - Validation is limited to the browser's
requiredcheck - The Cancel button does not do anything yet