You can find here few exemples of password input custom element.
You can use this custom element without any css framework
<input type="password" is="toggle-password"/>
<input type="password" is="toggle-password" data-show-text="Voir" data-hide-text="Cacher"/>
<input type="password" is="toggle-password" data-display-icon="true"/>
<input type="password" is="toggle-password" data-display-icon="true" data-icon-show="./icons/hide.svg" data-icon-hide="./icons/show.svg" />
You can also use this custom element with your favorite css framework like boostrap
<form>
<div class="form-group">
<input class="form-control" type="password" is="toggle-password"/>
</div>
</form>
<form>
<div class="form-group">
<input class="form-control" type="password" is="toggle-password" data-show-text="Voir" data-hide-text="Cacher"/>
</div>
</form>
<form>
<div class="form-group">
<input class="form-control" type="password" is="toggle-password" data-display-icon="true"/>
</div>
</form>
<form>
<div class="form-group">
<input class="form-control" type="password" is="toggle-password" data-display-icon="true" data-icon-show="./icons/show.svg" data-icon-hide="./icons/hide.svg" />
</div>
</form>