Skip to content

Commit b67bfc8

Browse files
author
Damien Carrier
committed
[TogglePasswordComponent] Update documentation example for usage without Symfony Forms
1 parent 4a5d9df commit b67bfc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/TogglePassword/doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ You can also use the TogglePassword with native HTML inputs:
275275
name="password"
276276
type="password"
277277
{{ stimulus_controller('symfony/ux-toggle-password/toggle-password', {
278+
{# visibleLabel: 'Show password', // If you want to modify this label. #}
279+
{# visibleIcon: 'Some svg icon', // If you want to modify this icon. #}
280+
{# hiddenLabel: 'Hide password', // If you want to modify this label. #}
281+
{# hiddenIcon: 'Some svg icon', // If you want to modify this icon. #}
278282
buttonClasses: ['toggle-password-button'], // Add as many classes as you wish. "toggle-password-button" is needed to activate the default CSS.
279283
}) }}
280284
>

0 commit comments

Comments
 (0)