v1.2.0
Theme

PIN Input

A PIN input component for secure PIN entry. Supports masking (password mode) and configurable field count with color theming.

Installation

npm install @duskmoon-dev/el-pin-input

Usage

import { register } from '@duskmoon-dev/el-pin-input';
register();
<el-dm-pin-input length="4" masked></el-dm-pin-input>

Live Demo

Masked (Default)

Unmasked

6-Digit PIN

Colors

Disabled

Properties

PropertyTypeDefaultDescription
lengthnumber4Number of PIN fields
color'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'error''primary'Color theme
disabledbooleanfalseDisable all fields
maskedbooleantrueShow dots instead of digits (password mode)