EN FR
← Modules

jizy-reveal

Reveal password input fields.

Overview

Reveal provides a way to show or hide sensitive information such as passwords in input fields. It adds a toggle next to the input and exposes callbacks for every state transition.

Features

  • Toggle visibility on any password or sensitive input
  • Customisable "show" and "hide" labels
  • Lifecycle callbacks for load, show and hide events
  • Vanilla JavaScript, zero dependency

Installation

npm install jizy-reveal

Example

Show/hide toggle for sensitive input fields (passwords, tokens, recovery codes).

Default labels

Toggles between password and plain-text. Default labels are Show / Hide.

Custom labels

Override textOff / textOn to localize (here: Afficher / Masquer).

With callbacks

Log each onShow / onHide firing.

(no events yet)