API Reference
Rockets React API
react-material-ui
type-aliases
SchemaFormProps

Type Alias: SchemaFormProps

SchemaFormProps: Omit<FormProps, "schema" | "validator"> & object

SchemaForm component props.

Type declaration

NameTypeDescription
advancedPropertiesRecord<string, AdvancedProperty>Additional schema for fields that are out of the default string, number, integer, object, array, boolean and null set for the form schema. The field set for advanced properties contain the same types as the default one, but add other fields such as email, password, select, radio, checkbox, checkboxes and switch.
advancedPropertiesMapperAdvancedPropertiesMapperCustom mapper for the advanced properties. The default mapper for the form component is described in the example below. The rest of the SchemaForm props extend from react-jsonschema-form (opens in a new tab). Example { "string": "string", "email": "string", "password": "string", "array": "array", "select": "string", "radio": "string", "checkbox": "boolean", "checkboxes": "array", "switch": "boolean" }
buttonComponentComponentType<SubmitButtonProps<any, RJSFSchema, any>>Custom component for the form submit button
buttonTitlestringTitle for the form submit button
schemaRJSFSchemaObject that defines the structure of the form, containing information about field names, properties and formatting. Comprehensive guide available at the schema docs (opens in a new tab).
titleReactNodeThe title of the form, usually displayed on top of the fields
validatorFormProps["validator"]Validation helper for the form structure. @rjsf/validator-ajvx provided by ajv (opens in a new tab), is generally used for this purpose. It is implemented on the form via the HTML5 Validation (opens in a new tab)

Defined in

packages/react-material-ui/src/components/SchemaForm/SchemaForm.tsx:22 (opens in a new tab)