ObfuscateText API
API reference docs for the Stash ObfuscateText
component. Learn about the props, CSS, and other APIs of this exported module.
Import
ts
import ObfuscateText from '@leaflink/stash/ObfuscateText.vue';
Props
Name | Type | Default | Description |
---|---|---|---|
text | string | '-' | The full text |
lengthToKeep | number | 0 | Num of characters to keep revealed. Default will obfuscate entire string with length of maskCharCount. |
maskChar | string | '•' | Character to obfuscate text with |
maskCharCount | number | 10 | The number of masked characters to display |
obfuscateAll | boolean | false | Whether to obfuscate all characters. |
position | "start" | "end" | start | Position to start obfuscating text |
showToggle | boolean | false | Displays a button for toggling text visibility |
Slots
None
Events
None