# Password

Password field renders a text input with the unlock button. Uses the native `input[type="password"]`. Clicking the Unlock button will toggle the visibility of the entered value.

## Example configuration

```php
...
array(
    'title' => 'My password field title',
    'id' => 'password-option',
    'desc' => 'Short description for the field',
    'tab' => 'main',
    'type' => 'password',
),
...
```

This will produce the following

![](https://2720448264-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LKMTiOPVR7pXWhebz7q%2Fsync%2Ff63aa452f9119394e627aa6784e8a9c53bfa6912.png?generation=1602624633218718\&alt=media)

## Params

| Name    | Type   | Description                                                      |
| ------- | ------ | ---------------------------------------------------------------- |
| `type`  | string | `password` **(required)**                                        |
| `id`    | string | Unique ID that will be used to retrieve the value **(required)** |
| `tab`   | string | Specifies in which tab this option will be rendered              |
| `title` | string | Shows a heading to the left of the field                         |
| `desc`  | string | Shows a description text (can have HTML)                         |
