6.0.0 • Published 3 months ago
@react-magma/schema-renderer 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
3 months ago
6.0.1-next.0
3 months ago
4.0.0-next.0
4 months ago
6.0.0
4 months ago
3.0.0-next.1
7 months ago
2.0.2
10 months ago
2.0.2-next.0
11 months ago
4.0.1
10 months ago
4.0.1-next.0
11 months ago
5.0.0
7 months ago
6.0.0-next.1
6 months ago
5.0.1-next.0
7 months ago
5.0.0-next.0
10 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
3.0.0-next.0
1 year ago
1.0.3
2 years 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.3-next.1
2 years ago
1.0.2
2 years ago
1.0.3-next.0
2 years ago
1.0.1
2 years ago
1.0.2-next.0
2 years ago
1.0.0
2 years ago
0.0.11-next.0
2 years ago
0.0.10-next.0
2 years ago
0.0.10
2 years ago
0.0.11
2 years ago
1.0.0-next.0
2 years ago
0.0.12
2 years ago
0.0.9-next.0
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.8-next.0
3 years ago
0.0.7
3 years ago
0.0.7-next.0
3 years ago
0.0.6
3 years ago
0.0.6-next.0
3 years ago
0.0.5
3 years ago
0.0.5-next.0
3 years ago
0.0.0-917117
3 years ago
0.0.4
3 years ago
0.0.4-next.0
3 years ago
0.0.3
3 years ago
0.0.3-next.0
3 years ago
0.0.2
3 years ago
0.0.2-next.0
3 years ago
0.0.1
3 years ago
0.0.1-next.1
3 years ago
0.1.0-alpha.0
3 years ago