1.1.1 • Published 1 month ago

@fidelisppm/string-toggler v1.1.1

Weekly downloads
5
License
SEE LICENSE IN GI...
Repository
github
Last release
1 month ago

StringToggler

A component which renders two strings of text, and toggles between them when clicked. Mostly useful for prompting a user to click to display sensitive data.

Props:

cover (string):
Optional. The string to display initially. Defaults to Click to show

secret (string): Mandatory. The secret which will be revealed when the component is clicked

reToggle (bool): Optional. If true, the component will automatically display the contents of cover after the secret has been revealed for thirty seconds. Defaults to false.

Usage:

<StringToggler
	cover="Click to reveal temporary password"
	secret="12345"
	reToggle={true}
/>
1.1.1

1 month ago

1.1.0

1 year ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago