react-json-form icon indicating copy to clipboard operation
react-json-form copied to clipboard

Support for UI customizations

Open bhch opened this issue 1 year ago • 6 comments

Features:

  • [ ] Setting custom html class names on form elements
  • [ ] Providing custom text for button labels

Possible Solution:

Creating a new keyword called ui for this purpose:

Example:

{
    "type": "object",
    "properties": {
        // ...
    },
    "ui": {
        "htmlClass": "custom-class",
        "addButtonText": "Add key",
        "removeButtonText": "Remove key",
        // etc ...
    }
}

bhch avatar Nov 08 '23 12:11 bhch