PasswordInput

pro

PasswordInput wraps Input with a visibility toggle button that switches between password and text input types.

Installation

Add this component with the NateUI CLI.

npx nateui@latest add PasswordInput

Examples

Custom Icons

API

PropDescriptionTypeDefault
onVisibleChangeCallback when the visibility icon is clicked, receiving the new visible state.(visible: boolean) => void—
iconsCustom icons for the show and hide states.{ show?: ReactNode; hide?: ReactNode }—
placeholderPlaceholder text.string—
disabledDisables the input.booleanfalse
sizeLayout size variant.'sm' | 'default' | 'lg''default'