An open API service indexing awesome lists of open source software.

https://github.com/ishan-im/json-ui

JSON Schema to UI
https://github.com/ishan-im/json-ui

json-ui-schema reactjs tailwindcss typescript

Last synced: 10 months ago
JSON representation

JSON Schema to UI

Awesome Lists containing this project

README

          

# React Dynamic Form Renderer from JSON 🚀

A React application that dynamically renders forms based on a provided UI schema. Built with React, TypeScript, and Tailwind CSS.

## Table of Contents

- [Tech Stack](#tech-stack)
- [File and Folder Structure](#file-and-folder-structure)
- [Screenshots](#screenshots)

# [Tech Stack](#tech-stack)

- **React**: A JavaScript library for building user interfaces.
- **TypeScript**: A superset of JavaScript that adds static typing to the language.
- **Tailwind CSS**: A utility-first CSS framework for building modern designs.

## [File and Folder Structure](#file-and-folder-structure)

```plaintext
.
├── public
├── src
│ ├── components
│ │ ├── elements
│ │ │ ├── Input.tsx
│ │ │ ├── Radio.tsx
│ │ │ ├── Select.tsx
│ │ │ ├── Switch.tsx
│ │ │ └── Toggle.tsx
│ │ ├── ElementRenderer.tsx
│ │ ├── ToolTip.tsx
│ │ └── UiComponents.tsx
│ ├── context
│ │ └── Provider.tsx
│ ├── types
│ │ ├── component.ts
│ │ └── form.ts
│ ├── utils
│ │ └── parse-label.ts
│ ├── App.css
│ ├── App.tsx
│ └── index.tsx


├── .gitignore
├── tailwind.config.js
├── package.json
└── README.md
```

# Deployed Link 🌐

[Link to Project ⛓️](https://json-to-ui.vercel.app/)

# [Screenshots 📷 & How to Use 🛠️](#screenshots)

**Provide JSON Schema:**

+ Upon accessing the application, you'll see a screen with a text bar on the left side.
+ In the text bar, paste or provide your JSON schema for the form.

[JSON Link](https://gist.github.com/ishan-im/314116a3ea1e08baca1cc4b416909f70)

Screenshot 2023-12-26 110101

**Generate Form:**

+ After providing the JSON schema, press the "Generate Form" button.
+ On the right side, a form will be dynamically rendered based on the provided schema.

Screenshot 2023-12-26 110149

**Complete the Form:**

+ The rendered form will contain fields based on the JSON schema.
+ Fill in the required details using your preferences, for example, choose between Naples Style Pizza and New York Style Pizza.

Screenshot 2023-12-26 110259

**Submit the Form:**

+ Once you have provided the necessary details, click the "Submit" button.
+ After submission, a modal will appear displaying the JSON details of your order.

Screenshot 2023-12-26 110327

**For Pasta Form Choose the JSON**

[Pasta JSON](https://gist.github.com/ishan-im/b7c205d0aaa251f53bd704789d34e76e)

Screenshot 2023-12-26 110419
Screenshot 2023-12-26 110441