Back to React Jsonschema Form

PrimeReact Customization

packages/docs/docs/api-reference/themes/primereact/uiSchema.md

6.5.31.4 KB
Original Source

PrimeReact Customization

You may set PrimeReact-specific options in the uiSchema object using the "prime" "ui:option".

json
{
  "password": {
    "ui:options": {
      "prime": {
        "feedback": true,
        "weakLabel": "Too weak",
        "mediumLabel": "Could be stronger",
        "strongLabel": "Strong password",
        "toggleMask": true
      }
    }
  }
}

Components

The @rjsf/primereact theme renders to the following PrimeReact components:

Please refer to the PrimeReact documentation for the available PrimeReact-specific options of each component.