Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gravel-form/blueprintjs-form

A flexible middlewares driven json schema form with Blueprintjs
https://github.com/gravel-form/blueprintjs-form

blueprintjs form json json-schema react schema

Last synced: 2 months ago
JSON representation

A flexible middlewares driven json schema form with Blueprintjs

Awesome Lists containing this project

README

        

# @gravel-form/blueprintjs

A flexible middlewares driven json schema form. The only limitation is your imagination.

## Quick start

```bash
npm install @gravel-form/blueprintjs
npm install @blueprintjs/datetime # optional
```

``` jsx
import React from 'React';
import '@blueprintjs/core/lib/css/blueprint.css';
import '@blueprintjs/datetime/lib/css/blueprint-datetime.css';
import { Form, presetMws } from "@gravel-form/blueprintjs";

const MyFirstForm = () => {
const schema = {
type: 'object',
properties: {
username: { type: 'string' },
password: { type: 'string' },
},
};

const extraProps = {
properties: {
password: {
props: { type:'password' },
},
},
};

const [data, setData] = React.useState();

return (
{
alert(JSON.stringify(data, null, 2));
}}
/>
);
};
```

## Playground
More examples can be found on the [playground](https://gravel-form.github.io/blueprintjs-form/basic).