Password input preview
Password visibility, strength and validation.
pro · Forms · primitive
When to use
- Use it when a product interface needs password visibility, strength and validation.
- Choose it when the host application can supply the required state and keep business logic outside the presentation component.
Alternatives
- Choose form-field instead when a labeled email field with validation and help text is the actual interface need, rather than password input.
Configure components.json and the @tidal-pro namespace before installing Pro components.
Installation
npx shadcn@latest add @tidal-pro/password-fieldImport components/ui/tidal.css, components/ui/password-field.css. Wrap installed components in tidal-scope.
Preview

Minimal example
import"./components/ui/tidal.css";
import"./components/ui/password-field.css";
import{TidalPasswordField}from"./components/ui/password-field";
export default()=><div className="tidal-scope"><TidalPasswordField label={"Demo"}/></div>;API and props
TidalPasswordField.label (required)stringRequired label value accepted by this exported component.
TidalPasswordField.descriptionstring | undefinedOptional description value accepted by this exported component.
TidalPasswordField.errorstring | undefinedOptional error value accepted by this exported component.
TidalPasswordField.formatRequirementCount((met: number, total: number) => string) | undefinedOptional format requirement count value accepted by this exported component.
TidalPasswordField.hideLabelstring | undefinedOptional hide label value accepted by this exported component.
TidalPasswordField.onRevealedChange((revealed: boolean) => void) | undefinedCallback invoked when the revealed change interaction is proposed.
TidalPasswordField.requirementsArray<TidalPasswordRequirement> | undefinedOptional requirements value accepted by this exported component.
TidalPasswordField.requirementsLabelstring | undefinedOptional requirements label value accepted by this exported component.
TidalPasswordField.revealedboolean | undefinedOptional revealed value accepted by this exported component.
TidalPasswordField.rootClassNamestring | undefinedOptional root class name value accepted by this exported component.
TidalPasswordField.showLabelstring | undefinedOptional show label value accepted by this exported component.
Complete usage
Full example, stylesheet imports, API and accessibility documentation
Gotchas
- Keep field state, validation results, submission, and persistence in the host form workflow.