<primer-input-cvv>
Secure, PCI-compliant input for card security codes (CVV/CVC). Uses iframe for maximum security.Quick Reference
Examples
Default
Custom Labels
Inline with Expiry
Properties
Validation
Validates:- Required digits entered (3 for most networks, 4 for Amex)
- Only numeric characters
Dynamic Length (Amex)
The CVV field automatically adapts based on the card network detected by<primer-input-card-number>:
No configuration needed — length adjusts when the card number identifies the network.
Events
<primer-input-cvv> does not emit its own events. Validation and submission are managed by the parent <primer-card-form>.
Relevant Parent Events
Reacting to card validation errors
CSS Properties
This component uses the shared Input Styling Tokens.Typography
Colors
Border & Background
Spacing
Animation
States
Usage Guidelines
Do
- Place inside
<primer-card-form> - Pair with
<primer-input-card-expiry>in a flex row
Don’t
- Don’t place outside card form context
Content Guidelines
Label
Placeholder
Error messages
See also
primer-card-form
Parent container
primer-input-card-expiry
Expiry input
primer-input-card-number
Card number input