# SiPasswordToggleComponent documentation

**Kind:** component

**Selector:** `si-password-toggle`

```
import { SiPasswordToggleComponent } from '@siemens/element-ng/password-toggle';
```

```
component SiPasswordToggleComponent
```

#### Input Properties

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [hideLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/password-toggle/si-password-toggle.component.ts#L61-L61>) | `TranslatableString` | `` $localize`:@@SI_PASSWORD_TOGGLE.HIDE:hide password` `` | The aria-label (translatable) for the password hide icon. |
| [showLabel](<https://github.com/siemens/element/blob/main/projects/element-ng/password-toggle/si-password-toggle.component.ts#L52-L52>) | `TranslatableString` | `` $localize`:@@SI_PASSWORD_TOGGLE.SHOW:show password` `` | The aria-label (translatable) for the password show icon. |
| [showVisibilityIcon](<https://github.com/siemens/element/blob/main/projects/element-ng/password-toggle/si-password-toggle.component.ts#L36-L36>) | `boolean` | `true` | Whether to show the visibility toggle icon. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [typeChange](<https://github.com/siemens/element/blob/main/projects/element-ng/password-toggle/si-password-toggle.component.ts#L42-L42>) | `string` | Emits the `type` attribute for the `<input>` ('password' \| 'text') whenever the password visibility is getting toggled. |

#### Attributes and Methods

##### inputType

[Source for inputType](<https://github.com/siemens/element/blob/main/projects/element-ng/password-toggle/si-password-toggle.component.ts#L67-L69>)

**Modifiers:** readonly

**Type:** `string`

The `type` attribute for the `<input>` ('password' | 'text').

### Types Documentation

### [TranslatableString](<https://github.com/siemens/element/blob/main/projects/element-translate-ng/translate-types/global.types.ts#L18-L18>)

**Kind:** type alias

```
import type { TranslatableString } from '@siemens/element-translate-ng/translate-types';
```

Represents a translatable string. This can either be a translation key, e.g. `ACTIONS.EDIT` that will be automatically translated when displayed on the UI or a pre-translated string, e.g. `Edit`. Equivalent to a normal string in usage and functionality.

```
type TranslatableString = string & Translatable
```
