From b67bfc89bd16068fce339b377bf2b0d0c03104cc Mon Sep 17 00:00:00 2001 From: Damien Carrier Date: Tue, 19 Sep 2023 15:04:40 +0200 Subject: [PATCH] [TogglePasswordComponent] Update documentation example for usage without Symfony Forms --- src/TogglePassword/doc/index.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/TogglePassword/doc/index.rst b/src/TogglePassword/doc/index.rst index a4dc21955f0..441acecf491 100644 --- a/src/TogglePassword/doc/index.rst +++ b/src/TogglePassword/doc/index.rst @@ -275,6 +275,10 @@ You can also use the TogglePassword with native HTML inputs: name="password" type="password" {{ stimulus_controller('symfony/ux-toggle-password/toggle-password', { + {# visibleLabel: 'Show password', // If you want to modify this label. #} + {# visibleIcon: 'Some svg icon', // If you want to modify this icon. #} + {# hiddenLabel: 'Hide password', // If you want to modify this label. #} + {# hiddenIcon: 'Some svg icon', // If you want to modify this icon. #} buttonClasses: ['toggle-password-button'], // Add as many classes as you wish. "toggle-password-button" is needed to activate the default CSS. }) }} >