How to Use
- Select a platform: Web, iOS, or Android
- Choose a layout preset: Vertical, grouped, compact, or single-line
- Toggle fields: Enable or disable optional fields like cardholder name and submit button
- Configure options: Platform-specific controls for styling, theming, and form behavior
- Copy the code: Switch between code tabs and use the copy button
Layout Presets
| Preset | Description | Best For |
|---|---|---|
| Vertical | All fields stacked in a single column | Simple forms, mobile-first designs |
| Grouped | Expiry and CVV side by side | Standard desktop layouts |
| Compact | Minimal height with 2-column grid | Space-constrained UIs |
| Single-line | Core card fields in one row | Inline checkout experiences |
See also
Layout customization
Learn about slot-based layout customization
Styling customization
CSS variables and styling options
Design tokens explorer
Interactive token visualization
Card Form Scope (iOS)
iOS card form scope API reference