Skip to content

Password

<ns-password>

Overview

Supports users when entering an existing or creating a password.

✨ This is an auto-generated AI summary of the ns-password's documentation. It may not be accurate. ✨

The ns-password component includes a set of features that help users not only enter a password but also accommodate their need to create one.

This component wraps the ns-inputter. Consider the guidelines defined for the ns-inputter when using this component. See <ns-inputter> documentation.

Examples

Guidance

Standard

Labelled diagram of ns-password

Key

KeyField typeGuidelines
ALabelClearly define the purpose. ‘Password’ is the preferred choice.
BHelperOptional helpful messaging can be used.
CTipOptional explanatory information.
DInputBy default the input is masked.
EShow/HideToggle to reveal or hide the password.

Confirm

Labelled diagram of ns-password-confirm

Key

KeyField typeGuidelines
ALabelClearly define the purpose. ‘Password’ is the preferred choice.
BInputBy default the input is masked.
CShow/HideThe show/hide toggles are dependent on each other to make comparison easy.
DValidation messageDynamic messaging to help the user correctly format when creating their new password.
EIn-line validationInstantly updates as the user creates their password.
FConfirmationChecks the user has entered the password they intended by matching them.

Implementation

Placement

The ns-password component can be used in the following components:

Specification

Attributes

helper
Property
helper
Description
The helper text of the password.
Type
string
Default
label
Property
label
Description
The label of the password used in `default` and `confirm` types.
Type
string
Default
Password
confirm-label
Property
confirmLabel
Description
The label of the confirm password used in `confirm` type.
Type
string
Default
Confirm Password
name
Property
name
Description
The name of the password to reference in form data.
Type
string
value
Property
value
Description
The value of the password.
Type
string
Default
labelID
Property
labelID
Type
string
Default
heading
Property
heading
Type
string
Default
type
Property
type
Description
The type of the password to use.
Type
string
Options
default confirm
Default
standard

Slots

SlotPermitted tagsDescription
tip-details<p> The tip details related to the `helper` text of the password.

Events

NameDescription
changeDispatched when the value changes. It holds the value of the password.

Last updated: