6.0.0 • Published 2 months ago
@react-magma/charts v6.0.0
React Magma Schema Renderer
THIS PACKAGE IS CURRENTLY A WORK IN PROGRESS AND EXTREMELY BETA. THERE MAY BE BREAKING CHANGES.
import * as React from 'react';
import { SchemaRenderer, templateTypes, componentTypes, Schema } from '@react-magma/react-schema-renderer';
export function Builder() {
const [values, setValues] = React.useState();
const schema: Schema = {
title: 'File Uploader',
description: 'An example file upload component.',
type: templateTypes.FORM,
fields: [
{
component: componentTypes.INPUT,
name: 'Full Name',
labelText: 'Full name',
},
{
component: componentTypes.FILE_UPLOAD,
name: 'file-uploaded',
labelText: 'file-uploaded',
},
],
};
return (
<div>
{values && <pre>{JSON.stringify(values, null, 2)}</pre>}
<SchemaRenderer schema={schema}
onSubmit={(values: any) => {
setValues(values)
}} />
</div>
);
}```
7.0.0-next.1
2 months ago
6.0.1-next.0
3 months ago
4.0.0-next.0
4 months ago
6.0.0
4 months ago
5.0.0
7 months ago
3.0.0-next.1
7 months ago
6.0.0-next.1
5 months ago
2.0.2-next.0
11 months ago
5.0.1-next.0
6 months ago
5.0.0-next.0
10 months ago
4.0.1
11 months ago
4.0.2
10 months ago
4.0.2-next.0
11 months ago
2.0.2
11 months ago
4.0.1-next.0
11 months ago
4.0.0
11 months ago
3.0.1-next.0
1 year ago
4.0.0-next.1
1 year ago
3.0.0
1 year ago
1.0.2
2 years ago
3.0.0-next.0
1 year ago
2.0.1-next.1
1 year ago
2.0.0-next.0
2 years ago
2.0.0-next.1
2 years ago
2.0.1
1 year ago
2.0.1-next.0
2 years ago
2.0.0
2 years ago
1.0.2-next.1
2 years ago
1.0.1
2 years ago
1.0.2-next.0
2 years ago
1.0.1-next.0
2 years ago
1.0.0
2 years ago
1.0.0-next.0
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.2-next.0
2 years ago
0.0.4
2 years ago
0.0.3-next.0
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago
0.0.1-next.0
2 years ago
0.0.0-next.0
2 years ago
0.0.0-9de073
3 years ago