Input Password

Password input with a built-in show/hide toggle.

Default

Click the eye icon to reveal the value.

Dark previewReplay previewOpen in new tab

Usage

Import the parts you need from the component's folder.

ts
import { InputPassword } from "@/components/ui/input-password";

With label

Pair with a Label for a complete form field.

Dark previewReplay previewOpen in new tab

Disabled

Pass disabled to block input and the reveal toggle.

Dark previewReplay previewOpen in new tab

API Reference

InputPassword

PropTypeDefaultDescription
modelValuestring""Password value. Supports v-model.
showLabelstring"Show password"aria-label / tooltip for the reveal toggle.
hideLabelstring"Hide password"aria-label / tooltip when the value is visible.
placeholderstring—Native placeholder, passed through to the input.
disabledbooleanfalseNative disabled attribute, passed through to the input.
EventDescription
update:modelValueFires on input. Enables v-model.