Using Slots in Your Code
Slots are the primary mechanism for customizing layout in Primer Checkout. Each slot is a named placeholder where you can insert your own content.Slot Reference
A complete reference of all named slots available in Primer Checkout components.primer-checkout
primer-checkout
primer-main
primer-main
primer-vault-manager
primer-vault-manager
primer-show-other-payments
primer-show-other-payments
primer-card-form
primer-card-form
primer-vault-cvv-input
primer-vault-cvv-input
primer-input-wrapper
primer-input-wrapper
Code Examples
Common patterns for customizing slots in Primer Checkout.Custom main layout
Custom main layout
Override the entire checkout content with your own UI:
Custom card form layout
Custom card form layout
Rearrange the card form fields with your own layout:
Custom success screen
Custom success screen
Show a custom message after successful payment:
See also
Using slots
Learn how to use slots to customize layout
Layout with event handling
Build fully custom checkout experiences
Design tokens explorer
Explore CSS variables and styling