Skip to content

Password

Import: @bnotk/dsx/css/password.css

Live Preview
ClassDescription
.dsx-passwordBase password field wrapper
.dsx-password__inputPassword input element
.dsx-password__toggleVisibility toggle button
.dsx-password__clearClear value button
.dsx-password--with-clearShows the clear action and adds extra input padding
.dsx-password--validatedReserves space for validation feedback
.dsx-password--errorError validation state
.dsx-password--warningWarning validation state
.dsx-password--successSuccess validation state
<div class="dsx-password dsx-password--warning dsx-password--validated dsx-password--with-clear">
<input class="dsx-input dsx-password__input" type="password" value="Needs one more symbol">
<button class="dsx-password__toggle" type="button" aria-label="Show password" aria-pressed="false">
<svg viewBox="0 0 24 24" aria-hidden="true"></svg>
</button>
<button class="dsx-password__clear" type="button" aria-label="Clear password">
<svg viewBox="0 0 24 24" aria-hidden="true"></svg>
</button>
</div>