Giter VIP home page Giter VIP logo

json-ui's Introduction

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

  • 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.
.
โ”œโ”€โ”€ 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 โ›“๏ธ

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

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

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

json-ui's People

Contributors

ishan-im avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.