0.1.18 • Published 2 years ago
schemy-forms-material v0.1.18
Schemy form
The best friend for your frontends.
Usage
Define your schema and we will generate the forms for you:
import { Schemy } from 'schemy-ts';
import { SchemyForm } from 'schemy-forms';
export const Page = () => {
// We will generate the correct inputs or select based on your schema
const user = new Schemy({
name: {
type: String,
required: true
},
age: {
type: Number,
min: 18
},
sex: {
type: String,
enum: ['male','female','other']
}
});
return (
<SchemyForm showInlineErrors={true} schema={user} />
);
}