Zephora UI

Form

Password

Password input built on Input with a visibility toggle button in the end-adornment slot.

Import

import { Password } from "@zephora/react";

Examples

Basic

Click the eye button to reveal or hide the value.

Initially visible

Invalid

All Input props (size, invalid, fullWidth…) work on Password too.

API

Password props

PropTypeDefaultDescription
defaultVisiblebooleanfalseWhether the password starts revealed (uncontrolled).
size"sm" | "md" | "lg""md"Control height / typography scale (inherited from Input).
invalidbooleanfalseMarks the field invalid: sets aria-invalid and error styling.
startAdornmentReactNodeElement rendered before the input. The end slot is reserved for the toggle.
unstyledbooleanfalseHeadless mode — drops Zephora classes so your own CSS can style it.
…restOmit<InputProps, "type" | "endAdornment">All remaining Input props and native input props are forwarded.