TidalUI

Password input preview

Password visibility, strength and validation.

pro · Forms · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/password-field

Import components/ui/tidal.css, components/ui/password-field.css. Wrap installed components in tidal-scope.

Preview

Password input component preview

Open interactive 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)
string

Required label value accepted by this exported component.

TidalPasswordField.description
string | undefined

Optional description value accepted by this exported component.

TidalPasswordField.error
string | undefined

Optional error value accepted by this exported component.

TidalPasswordField.formatRequirementCount
((met: number, total: number) => string) | undefined

Optional format requirement count value accepted by this exported component.

TidalPasswordField.hideLabel
string | undefined

Optional hide label value accepted by this exported component.

TidalPasswordField.onRevealedChange
((revealed: boolean) => void) | undefined

Callback invoked when the revealed change interaction is proposed.

TidalPasswordField.requirements
Array<TidalPasswordRequirement> | undefined

Optional requirements value accepted by this exported component.

TidalPasswordField.requirementsLabel
string | undefined

Optional requirements label value accepted by this exported component.

TidalPasswordField.revealed
boolean | undefined

Optional revealed value accepted by this exported component.

TidalPasswordField.rootClassName
string | undefined

Optional root class name value accepted by this exported component.

TidalPasswordField.showLabel
string | undefined

Optional show label value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas