# react-jsonschema-form-theme-blueprintjs

> Blueprintjs theme for react-jsonschema-form

Latest version **1.0.4** (published 2019-10-23) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install react-jsonschema-form-theme-blueprintjs
pnpm add react-jsonschema-form-theme-blueprintjs
yarn add react-jsonschema-form-theme-blueprintjs
bun add react-jsonschema-form-theme-blueprintjs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2019-10-23 |
| First published | 2019-09-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 149 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Dominik Haas |
| Maintainers | domhaas |
| Keywords | react, blueprintjs, theme, react-jsonschema-form, jsonschema, form |

## Links

- npm: https://www.npmjs.com/package/react-jsonschema-form-theme-blueprintjs
- Repository: https://github.com/domhaas/react-jsonschema-form-theme-blueprintjs
- Homepage: https://github.com/domhaas/react-jsonschema-form-theme-blueprintjs#readme
- Issues: https://github.com/domhaas/react-jsonschema-form-theme-blueprintjs/issues
- npm.io page: https://npm.io/package/react-jsonschema-form-theme-blueprintjs

## Dependencies (10)

- [react](https://npm.io/package/react.md) ^16.9.0
- [react-dom](https://npm.io/package/react-dom.md) ^16.9.0
- [moment-timezone](https://npm.io/package/moment-timezone.md) ^0.5.26
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.6.0
- [@blueprintjs/core](https://npm.io/package/@blueprintjs/core.md) ^3.18.1
- [react-grid-system](https://npm.io/package/react-grid-system.md) ^5.0.2
- [@babel/preset-react](https://npm.io/package/@babel/preset-react.md) ^7.0.0
- [@blueprintjs/select](https://npm.io/package/@blueprintjs/select.md) ^3.10.0
- [@blueprintjs/datetime](https://npm.io/package/@blueprintjs/datetime.md) ^3.13.0
- [react-jsonschema-form](https://npm.io/package/react-jsonschema-form.md) ^1.8.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2019-10-23
- 1.0.3 — 2019-10-23
- 1.0.2 — 2019-10-22
- 1.0.1 — 2019-09-30
- 1.0.0 — 2019-09-27

## README

react-jsonschema-form-theme-blueprintjs
=====================

[react-jsonschema-form](https://github.com/rjsf-team/react-jsonschema-form) Theme for the great [Blueprintjs](https://github.com/palantir/blueprint) React UI toolkit.
It is using the [HOC withTheme](https://github.com/mozilla-services/react-jsonschema-form/pull/1226).

This is a work in progress and currently this is really a pre-release with only two widgets. Feel free to contribute.
There's currently no node-package available. Stay tuned.

![](https://i.imgur.com/hnoNHBU.png)

## Build
```bash
git clone git@github.com:domhaas/react-jsonschema-form-theme-blueprintjs.git
npm i
npm run build:lib
```

## Current state
| Widget         | State   |
| -------------- | ------- |
| TextWidget     | working |
| CheckboxWidget | working |
| RadioWidget    | working |
| DateWidget     | working |


## Example
```javascript
import React from 'react';
import { withTheme } from 'react-jsonschema-form';
import BlueprintjsTheme from 'react-jsonschema-form-theme-blueprintjs';
import { Button } from "@blueprintjs/core";
import './App.css';

const ThemedForm = withTheme(BlueprintjsTheme);

const schema = {
    title: "Todo",
    type: "object",
    required: ["title"],
    properties: {
        title: { type: "string", title: "Title", default: "A new task" },
        done: { type: "boolean", title: "Done?", default: false }
    }
};

const uiSchema = {
    "radio": {
      "ui:widget": "radio",
        "ui:options": {
            "inline": true
        }
    }
};

const onSubmit = (e) => {
    console.log('submit', e.formData)
}

function App() {
    return (
        <ThemedForm schema={schema} uiSchema={uiSchema} onSubmit={onSubmit}>
            <Button type="submit">submit</Button>
        </ThemedForm>
    );
}

export default App;
```

---
_Source: https://npm.io/package/react-jsonschema-form-theme-blueprintjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
