rjsf-team / react-jsonschema-form

A React component for building Web forms from JSON Schema.
https://rjsf-team.github.io/react-jsonschema-form/
Apache License 2.0
14.3k stars 2.19k forks source link

Is there a complete example for custom field & widgets? #4100

Open LazerJesus opened 8 months ago

LazerJesus commented 8 months ago

Prerequisites

What theme are you using?

core

What is your question?

Hey, i am reading through the docs and it stands out that all examples are clipped in some way. for example, there isnt allways a schema definition in any of the examples on the page for custom widget fields, but just magically assumed to be there. one complete example of a form with custom widgets / fields?

maybe even multiple? the benefit of an example with multiple custom widgets / fields would be to clear up confusion around wheather ui:widget in the example below is arbitrary or semantic.

const uiSchema: UiSchema = {
  'ui:widget': 'checkbox',
};
heath-freenome commented 8 months ago

There are a few examples in the playground: