All Projects β†’ ajainvivek β†’ react-aztec

ajainvivek / react-aztec

Licence: MIT license
πŸ”₯ Material UI based dynamic form component for React using JSON

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to react-aztec

Ngx Formly
JSON powered / Dynamic forms for Angular
Stars: ✭ 2,109 (+5600%)
Mutual labels:  dynamic-forms, json-forms
migrana
Migrana is a Datomic migration tool that gives you the control over how your Datomic database evolves.
Stars: ✭ 22 (-40.54%)
Mutual labels:  schema
avrow
Avrow is a pure Rust implementation of the avro specification https://avro.apache.org/docs/current/spec.html with Serde support.
Stars: ✭ 27 (-27.03%)
Mutual labels:  schema
mudjs
WebSocket MUD client for DreamLand
Stars: ✭ 13 (-64.86%)
Mutual labels:  material-ui
ddal
DDAL(Distributed Data Access Layer) is a simple solution to access database shard.
Stars: ✭ 33 (-10.81%)
Mutual labels:  schema
proto2gql
The project has been migrated to https://github.com/EGT-Ukraine/go2gql.
Stars: ✭ 21 (-43.24%)
Mutual labels:  schema
graphql-rbac
GraphQL Role-based access control (RBAC) middleware
Stars: ✭ 36 (-2.7%)
Mutual labels:  schema
schemarkdown
The core library for generate Markdown document from database schema.
Stars: ✭ 4 (-89.19%)
Mutual labels:  schema
alda
A boilerplate for React isomorphic aplication with Material Design
Stars: ✭ 16 (-56.76%)
Mutual labels:  material-ui
Frontend
λ§ˆμŒμ„ μž‡λŠ” ν˜„λͺ…ν•œ μ†ŒλΉ„ 'μž‡λ‹€'🀝
Stars: ✭ 19 (-48.65%)
Mutual labels:  material-ui
react-material-color-picker
react-material-color-picker component for selecting colors from google material color palette πŸ“ƒ
Stars: ✭ 19 (-48.65%)
Mutual labels:  material-ui
cocktails
UI for browsing IBA cocktails
Stars: ✭ 106 (+186.49%)
Mutual labels:  material-ui
nz-schema-form
ng-zorro-antd form generation based on JSON-Schema
Stars: ✭ 40 (+8.11%)
Mutual labels:  dynamic-forms
typescript-to-json-schema
Generate JSON schema from your Typescript sources
Stars: ✭ 54 (+45.95%)
Mutual labels:  schema
Material-Backdrop-Android
Material Backdrop
Stars: ✭ 106 (+186.49%)
Mutual labels:  material-ui
ion-schema-kotlin
A Kotlin reference implementation of the Ion Schema Specification.
Stars: ✭ 23 (-37.84%)
Mutual labels:  schema
EsriRESTScraper
A Python class that scrapes ESRI Rest Endpoints and exports data to a geodatabase
Stars: ✭ 43 (+16.22%)
Mutual labels:  schema
generaptr
Generaptr is a node package that helps when starting up a project by generating boilerplate code for Express api.
Stars: ✭ 16 (-56.76%)
Mutual labels:  schema
gito-github-client
GitHub client app helps you monitor stars and traffic of your public repositories. This was the capstone project in Udacity's Android Developer Nanodegree.
Stars: ✭ 76 (+105.41%)
Mutual labels:  material-ui
JADA
JADA - Just Another Dictionary App
Stars: ✭ 20 (-45.95%)
Mutual labels:  material-ui

react-aztec

GitHub issues npm version

Build dynamic forms using Material UI

Check demo & detail docs Documentation

Build dynamic forms using interactive editor Playground

Installation

npm install material-ui --save npm install react-aztec --save

Basic Usage

Refer Material-UI documentation for components props

import { TextField } as MUI from 'material-ui';
import { Aztec } from 'react-aztec';

const formData = [
  {
    id: "name",
    type: 'textfield',
    props: {
      id: 'name',
      floatingLabelText: 'Hello, Whats your name?',
      hintText: 'Name is required'
    }
  }  
];

class SimpleForm extends React.Component {
  render() {
    return (
      <div>
        <Aztec
          guid="unique-id"
          data={formData}
          library={MUI}
        />
      </div>
    )
  }
}

Usage with form validation

import * as MUI from 'material-ui';
import { Aztec } from 'react-aztec';

const formData = [
  {
    id: "name",
    type: 'textfield',
    props: {
      id: 'name',
      floatingLabelText: 'Hello, Whats your name?',
      hintText: 'Name is required'
    },
    rules: {
      validation: [
        {
          rule: 'mandatory', //email, lowercase, mobile
          message: 'Name is required!!' // on error message to be displayed
        }
      ]
    }
  }  
];

class SimpleForm extends React.Component {
  render() {
    return (
      <div>
        <Aztec
          guid="unique-id"
          data={formData}
          library={MUI}
        />
      </div>
    )
  }
}

Usage with form layout

Aztec uses bootstrap 24 column grid layout

import * as MUI from 'material-ui';
import { Aztec } from 'react-aztec';

const formData = [
  {
    id: "name",
    type: 'textfield',
    props: {
      id: 'name',
      floatingLabelText: 'Hello, Whats your name?',
      hintText: 'Name is required'
    },
    layout: {
      row: 1,
      xs: {
        col:24
      },
      sm: {
        col:24
      },
      md: {
        col:12
      },
      lg: {
        col:8
      }
    }
  }  
];

class SimpleForm extends React.Component {
  render() {
    return (
      <div>
        <Aztec
          guid="unique-id"
          data={formData}
          library={MUI}
        />
      </div>
    )
  }
}

Contribute

If you have a feature request, please add it as an issue or make a pull request.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].