mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-29 17:52:32 +00:00
* Update repository links to point to main Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> * Fix broken link in relatedtools.mdx Co-authored-by: Steven Clark <steven.clark@hashicorp.com> Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
1.4 KiB
1.4 KiB
MaskedInput
MaskedInput components are textarea inputs where the input is hidden. They are used to enter sensitive information like passwords.
| Param | Type | Default | Description |
|---|---|---|---|
| [value] | String |
The value to display in the input. | |
| [placeholder] | String |
value |
The placeholder to display before the user has entered any input. |
| [allowCopy] | bool |
|
Whether or not the input should render with a copy button. |
| [displayOnly] | bool |
false |
Whether or not to display the value as a display only pre element or as an input. |
| [onChange] | function | action |
Function.prototype |
A function to call when the value of the input changes. |
Example
<MaskedInput
@value={{attr.options.defaultValue}}
@placeholder="secret"
@allowCopy={{true}}
@onChange={{action "someAction"}}
/>
See