Password input

Password input component is a form element that allows the user to enter a password. It provides a way to hide the password while typing.

Design system docs

Examples Default password input
<dap-ds-password-input label="Password" description="Enter your password" value="password"></dap-ds-password-input>
Sizes

Password input component comes in two sizes: small and large. The default size is sm.

<dap-ds-stack direction="column">
  <dap-ds-password-input label="Small" value="password"></dap-ds-password-input>
  <dap-ds-password-input label="Large" size="lg" value="password"></dap-ds-password-input>
</dap-ds-stack>
Statuses
<dap-ds-stack direction="column">
  <dap-ds-password-input label="Disabled" value="password" disabled></dap-ds-password-input>
  <dap-ds-password-input label="Success" status="success" value="password"></dap-ds-password-input>
  <dap-ds-password-input label="Error" status="error" value="password" required feedback="Wrong password" feedbackType="negative"></dap-ds-password-input>
</dap-ds-stack>
Importing
import { DapDSPasswordInput } from 'dap-design-system/dist/dds'
Importing React
import { DapDSPasswordInputReact } from 'dap-design-system/dist/react'
Slots

No slots available.

Attributes
PropertyTypeDefaultDescription
labelstringThe label of the password input.
placeholderstringThe placeholder of the password input.
descriptionstringThe description of the password input.
tooltipstringThe tooltip of the password input.
statusstringThe status of the password input. Can be success or error.
size'sm' 'lg'The size of the password input. Default is sm. Can be sm or lg.
namestringThe name of the password input.
valuestringThe value of the password input.
disabledbooleanThe disabled state of the password input. Default is false.
requiredbooleanThe required state of the password input. Default is false.
readonlybooleanThe readonly state of the password input. Default is false.
autofocusbooleanThe autofocus state of the password input. Default is false.
feedbackstringThe feedback of the input.
feedbackType'negative' 'positive' 'warning'The feedback type of the input. Can be negative, positive, or warning.
loadingbooleanThe loading state of the password input. Default is false.
optionalbooleanThe optional state of the password input.
optionalLabelstringThe optional label of the password input.
subtlebooleanThe weight of the label. Default is false
Events
Event NameDescription
dds-changeFired when the input value changes.
dds-inputFired when the input value changes.
dds-keydownFired when a key is pressed down.
dds-blurFired when the input loses focus.
dds-focusEmitted when the input gains focus.
CSS Parts
Part NameDescription
postfixThe postfix of the password input.
password-inputThe password input.
password-input--visibleThe visible password input.