@navinc/base-react-components
Version:
Nav's Pattern Library
8 lines (6 loc) • 427 B
Markdown
A **read-only input** that displays sensitive content that can be toggled on/off.
User may still use keyboard to access the input and copy the value.
Keyboard can also access the toggle button.
To keep this component usage simple, it takes a `value` which is the visible string,
and a `maskedValue` which is the hidden string. This eliminates the need to use any special masking,
pattern, regex, etc. to transform the string.