How to render password field

I want to render password and confirm password field in the form, the control type is rendered as text, how can I render is at type password?

Regards
Kashif

[original thread by kashifxs]

Hi @xs-kashif, you can configure the password format via the ui schema options, e.g.

"type": "Control",
"scope": "#/properties/password",
"options": {
  "format": "password"
}