Description
angular-code-input is a code input component for Angular, used for PIN codes, one-time passwords and similar fields. Each character appears in its own box, and the component accepts numbers, letters and password-style hidden input. The README lists support for Angular 7 to 16 and later, Ionic 4 to 7 and later, mobile browsers and WebViews on Android and iOS, and desktop browsers including Chrome, Firefox, Safari and Edge. Clipboard events are supported. Version 2.x is for Angular 16 and later, and version 1.x is for Angular 7 to 15. You import CodeInputModule into your app or page module, or configure the component across the app through a root config. The look can be changed with CSS variables for item spacing, height, borders and the text security type used when input is hidden. The ::ng-deep selector also works, though the README marks it as deprecated. The repository has a preview and a list of methods for controlling the component from code.…
Highlights
- Number, character and hidden password input
- Clipboard paste support
- Works in Angular 7 to 16 and later
- Ionic 4 to 7 and later support
- Styled with CSS variables
Ratings & Reviews
No ratings yet
Be the first to rate angular-code-input.
People also visit
angular-code-input FAQ
What is angular-code-input?
A code and PIN input component for Angular that shows one box per character, for numbers or letters.
Which Angular version do I need?
The README says use the 2.x release for Angular 16 and later, and the 1.x release for Angular 7 to 15.
Does it work with Ionic?
Yes. The README lists Ionic 4 to 7 and later, usable on iOS and Android.
How do I style it?
Use the CSS variables listed in the README, such as item spacing, height and border. The README notes that ::ng-deep is deprecated.
How do I install it?
Run npm install --save angular-code-input, then import CodeInputModule as the usage section shows.
What are the best angular-code-input alternatives?
Popular alternatives to angular-code-input include angularx-qrcode, ngx-bootstrap-icons and ngx-mask. See all angular-code-input alternatives
















