UNPKG

@datalayer/primer-rjsf

Version:

React JSON Schema Form (RJSF) for Primer

49 lines (48 loc) 1.15 kB
export default { schema: { title: "A registration form", type: "object", required: ["firstName", "lastName"], properties: { password: { type: "string", title: "Password", }, lastName: { type: "string", title: "Last name", }, bio: { type: "string", title: "Bio", }, firstName: { type: "string", title: "First name", }, age: { type: "integer", title: "Age", }, }, }, uiSchema: { "ui:order": ["firstName", "lastName", "*", "password"], age: { "ui:widget": "updown", }, bio: { "ui:widget": "textarea", }, password: { "ui:widget": "password", }, }, formData: { firstName: "Chuck", lastName: "Norris", age: 75, bio: "Roundhouse kicking asses since 1940", password: "noneed", }, };