open-vault/ui/stories/masked-input.md
Noelle Daley 30dd63b47e
ui/storybook/add form components (#6533)
* storybook: add .md suffix to stories blueprint

* storybook: add FormField

* storybook: update AuthConfigForm docs

* storybook: add FormFieldGroups

* storybook: add MaskedInput

* storybook: add example FormField attr

* storybook: remove actions addon
2019-04-05 14:58:55 -07:00

1.2 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.

Example

<MaskedInput
 @value={{attr.options.defaultValue}}
 @placeholder="secret"
 @allowCopy={{true}}
/>

See