🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@sentinel-password/react-components

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentinel-password/react-components

Accessible, headless React components for @sentinel-password - password validation UI made simple

Source
npmnpm
Version
0.4.8
Version published
Weekly downloads
4.1K
-32.02%
Maintainers
1
Weekly downloads
 
Created
Source

@sentinel-password/react-components

npm version TypeScript License: MIT

Accessible, headless React components for password validation built on top of @sentinel-password/core and @sentinel-password/react.

Documentation | Interactive Playground | API Reference

Features

  • Headless & Unstyled - Bring your own styles
  • WCAG 2.1 AAA - Full accessibility compliance
  • Keyboard Navigation - Complete keyboard support
  • TypeScript - Full type safety
  • Lightweight - Minimal bundle size
  • Flexible - Controlled and uncontrolled modes
  • React 18 & 19 - Supports both React 18 and 19

Installation

npm install @sentinel-password/react-components
# or
pnpm add @sentinel-password/react-components
# or
yarn add @sentinel-password/react-components

Quick Start

import { PasswordInput } from '@sentinel-password/react-components'

function MyForm() {
  return (
    <form>
      <PasswordInput
        label="Password"
        onValidationChange={(result) => {
          console.log('Valid:', result.valid)
          console.log('Strength:', result.strength)
        }}
      />
    </form>
  )
}

API Reference

PasswordInput

A headless password input component with built-in validation.

<PasswordInput
  label="Password"
  description="Enter a strong password"
  onValidationChange={(result) => console.log(result)}
  onChange={(value) => console.log(value)}
  showPassword={false}
  onShowPasswordChange={(show) => console.log(show)}
  validateOnMount={false}
  debounceMs={300}
/>

Props

PropTypeDefaultDescription
labelstringrequiredAccessible label for the input
descriptionstring-Optional description text
onValidationChange(result: ValidationResult) => void-Callback when validation state changes
onChange(value: string) => void-Callback when input value changes
showPasswordbooleanfalseWhether to show/hide the password
onShowPasswordChange(show: boolean) => void-Callback when show/hide toggle changes
validateOnMountbooleanfalseValidate immediately on mount
debounceMsnumber300Debounce delay in ms

All standard HTML input props are also supported (except type and onChange).

Accessibility

This component follows WCAG 2.1 AAA guidelines:

  • Semantic HTML elements
  • ARIA labels and descriptions
  • Live regions for validation feedback
  • Keyboard navigation support
  • Focus management

License

MIT © Aleksei Kankov

Keywords

password

FAQs

Package last updated on 31 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts