Default

import { PasswordInput } from '@davaux/ui'

<PasswordInput label="Password" placeholder="Enter your password" />

Description & error

Must be at least 8 characters

Passwords do not match

<PasswordInput
  label="New password"
  description="Must be at least 8 characters"
  placeholder="Enter new password"
/>

<PasswordInput
  label="Confirm password"
  error="Passwords do not match"
  placeholder="Repeat password"
/>

Required & disabled

<PasswordInput label="Required" withAsterisk />
<PasswordInput label="Disabled" disabled value="secret123" />

Props

PropTypeDefaultDescription
labelstringField label rendered above the input
descriptionstringHelper text below the label
errorstring|booleanError message or true for styles only
valuestringPre-filled value (SSR snapshot)
placeholderstringPlaceholder text
disabledbooleanDisables the input and toggle button
requiredbooleanMarks the field required
withAsteriskbooleanShows asterisk without native required
size'xs'|'sm'|'md'|'lg'|'xl'Font size and height via design tokens
radius'xs'|'sm'|'md'|'lg'|'xl'|stringCorner radius via design tokens or CSS value
namestringForm field name
idstringAssociates label with input