Credit Card Input
Pro Features
Unlock advanced capabilities with the Pro version
Visual Card Preview
Interactive 3D credit card preview with flip animation for CVC input
Smart Auto-Formatting
Automatic formatting for card numbers and expiry dates with intelligent spacing
Luhn Algorithm Validation
Industry-standard credit card number validation for data integrity
Card Type Detection
Automatic detection of Visa, MasterCard, Amex, and other major card types
Security Features
Built-in security badge and secure input handling for PCI compliance
Complete Validation
Real-time validation with customizable error messages and business rules
Installation
Install via CLI
moonui add credit-card-input
Usage
Examples
Basic Credit Card Input
Complete credit card input with all fields and visual preview
Credit Card with Validation
Real-time validation with error messages and Luhn algorithm check
Minimal Credit Card Input
Compact version without visual card preview
Custom Styled Credit Card
Credit card input with custom styling and dark theme
Payment Information
Form Integration Example
Complete checkout form with credit card input integration
Advanced Features Demo
Showcasing all advanced features including card flip animation and auto-formatting
Interactive Demo
Try focusing on the CVC field to see the card flip animation
Features Active:
- ✓ Auto-formatting
- ✓ Card type detection
- ✓ Luhn validation
- ✓ Security badge
Current State:
- Card Type: Visa
- Focused Field: None
- Valid: Yes