From e425e76b3995cd94afa970082dae538940eda96d Mon Sep 17 00:00:00 2001 From: HenestrosaDev Date: Mon, 17 Jun 2024 04:03:27 +0200 Subject: [PATCH] Add button to toggle password visibility in `FloatingLabel` --- public/images/icons/eye-off.svg | 15 +++++++++ public/images/icons/eye.svg | 17 ++++++++++ .../js/Components/Forms/FloatingLabel.vue | 31 +++++++++++++++++-- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 public/images/icons/eye-off.svg create mode 100644 public/images/icons/eye.svg diff --git a/public/images/icons/eye-off.svg b/public/images/icons/eye-off.svg new file mode 100644 index 0000000..832c41e --- /dev/null +++ b/public/images/icons/eye-off.svg @@ -0,0 +1,15 @@ + + + + + + \ No newline at end of file diff --git a/public/images/icons/eye.svg b/public/images/icons/eye.svg new file mode 100644 index 0000000..5ccc0e4 --- /dev/null +++ b/public/images/icons/eye.svg @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file diff --git a/resources/js/Components/Forms/FloatingLabel.vue b/resources/js/Components/Forms/FloatingLabel.vue index 7c016db..7f4f195 100644 --- a/resources/js/Components/Forms/FloatingLabel.vue +++ b/resources/js/Components/Forms/FloatingLabel.vue @@ -1,10 +1,13 @@