motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Input
  5. Password Input
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Input

Password Input

New

A password field with a show and hide toggle, a four-step strength bar and rules that tick off as you type.

npx motionsnack add password-input

Customize

Error Colour
Warning Colour
Success Colour
px
px
<PasswordInput />

Props

28 properties

PropertyTypeDefaultDescription
valuestring-Controlled value. Leave undefined to let the component manage it.
defaultValuestring''Value on first render when uncontrolled.
onChange(value: string) => void-Called with the new text on every change.
namestring-Name submitted with a form.
mode'current' | 'new'-Sign-in or new password: sets autocomplete and whether the meter and rules show.
invalidbooleanfalseInvalid without its own message.
weakColor / fairColor / strongColorstring-Deprecated aliases of errorColor / warningColor / successColor.
idstringgeneratedId of the input.
classNamestring''Extra classes on the wrapper.
labelstring'Password'Label above the field. Empty hides it.
placeholderstring'Create a password'Hint inside the empty field.
autoComplete'new-password' | 'current-password''new-password'new-password for sign-up forms, current-password for sign-in.
showStrengthbooleantrueShow the strength bar under the field. Off by default in current mode.
showRulesbooleantrueShow the rules that tick off as the password meets them.
minLengthnumber8Fewest characters a password needs.
strengthLabelsstring'Weak, Fair, Good, Strong'Words of the four strength levels, weakest first, separated by commas.
ruleLabelsstring'At least {n} characters, A number, An upper case letter, A symbol'Rule texts separated by commas: length ({n} = the number), number, upper case, symbol.
toggleLabelstring'Show password'Label of the show / hide button for screen readers.
helperTextstring''Small text under the field. Empty hides it.
capsLockLabelstring'Caps Lock is on.'Hint shown while Caps Lock is on.
errorstring''Error message. Any text switches the field to its error state.
disabledbooleanfalseDisables the field.
requiredbooleanfalseMarks the field as required.
errorColorstring''Weak bar and error message, both themes. Empty uses the per-theme pair.
warningColorstring''Fair bar, both themes. Empty uses the per-theme pair.
successColorstring''Good / strong bar and met rules, both themes. Empty uses the per-theme pair.
heightnumber48Height of the field.
radiusnumber12Corner radius of the field.

About Password Input

Password Input is made for sign-up and account forms. The eye button shows or hides the password, and a slash draws across the eye while it is hidden. Under the field a strength bar fills segment by segment and changes colour from weak to strong, and a list of rules ticks off one by one with a drawn check mark: length, a number, upper and lower case, a symbol. Every word is a prop, so the field can be translated, and the bar and rules can be switched off for a sign-in form.

What's included

  • Show and hide toggle with a drawn slash
  • Four-step strength bar with three colours
  • Rules that tick off with a drawn check
  • Minimum length and every text as props
  • Sign-up or sign-in autocomplete
  • Light and dark look
Type
Animated React input component
Library
Components · Input
Stack
Next.js, React, Tailwind CSS
Added
2026-11-23
Install
npx motionsnack add password-input