0.34.0 • Published 11 months ago

@sagold/rje-aria-widgets v0.34.0

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

Simple and extensible React component capable of using JSON Schema to declaratively build and customize user forms.

install

yarn add @sagold/rje-aria-widgets

Npm package version Types

This library of components and widgets comes unstyled, but different css files can be combined to add basic styling or a full dark and light theme.

import { JsonForm, widgets } from '@sagold/rje-aria-widgets';
import '@sagold/rje-aria-widgets/dist/styles.css';

function MyForm({ schema, data }) {
  return (
    <JsonForm
      widgets={widgets}
      schema={schema}
      data={data}
      onChange={(data) => {
        console.log('data', data);
      }}
    />
  );
}