@sagold/rje-aria-widgets
v0.34.0
Published
<p align="center"> <img src="./src/docs/he-full-2000x564.png" width="100%" alt="rje-aria-widgets"><br /> <img src="./src/docs/title-widgets-700x76.png" width="350px" alt="rje-aria-widgets"> </p>
Downloads
65
Readme
Simple and extensible React component capable of using JSON Schema to declaratively build and customize user forms.
install
yarn add @sagold/rje-aria-widgets
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);
}}
/>
);
}