UNPKG

@navinc/base-react-components

Version:
8 lines (6 loc) 427 B
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.