구성 요소
비밀번호 입력
표시 여부를 전환할 수 있는 비밀번호 입력란입니다.
사용법
기본
HTML
<bs:bsui-password-input placeholder="Your password" />설정 및 확인
일반적인 두 필드 구성으로, 각각 레이블과 폼 이름이 있습니다.
HTML
<bs:bsui-stack direction="column" gap="4" align="stretch">
<bs:bsui-field>
<bs:bsui-field-label text="New password" />
<bs:bsui-password-input name="password" placeholder="At least 12 characters" />
</bs:bsui-field>
<bs:bsui-field>
<bs:bsui-field-label text="Confirm password" />
<bs:bsui-password-input name="password_confirm" placeholder="Repeat it" />
</bs:bsui-field>
</bs:bsui-stack>잘못된 입력
필드에 잘못된 값이 있으면 컨트롤에 색상을 표시하고 오류 메시지를 보여 줍니다.
HTML
<bs:bsui-field invalid="true">
<bs:bsui-field-label text="Password" />
<bs:bsui-password-input placeholder="Enter password" />
<bs:bsui-field-error text="Use at least 12 characters and one number." />
</bs:bsui-field>비활성화됨
표시 버튼도 필드와 함께 잠깁니다.
HTML
<bs:bsui-password-input placeholder="Managed by your identity provider" disabled="true" />속성
| 속성 | 유형 | 기본값 |
|---|---|---|
name | text | — |
placeholder | text | Enter password |
disabled | toggle | false |
nameAlt | text | — |
onChange | text | — |
value | text | — |
inputId | text | — |
ariaLabel | text | — |
autocomplete | text | — |