Skip to content

API Reference

Catalog metadata for this block. Install copies the source into your project.

npx cronus-ui add payment-method
Skip Payment Method fields table
FieldTypeDefaultDescription
slug*
string"payment-method"Registry item id. Passed to cronus-ui add.
name*
string"Payment Method"Display name shown in the gallery.
description*
string"Choose a saved card from a radio list or add a new card with a full card-entry form."Short summary of what the block covers.
variants
{ id: string; name: string; description: string }[]["select", "add-card"]Alternate layouts. Install a look with npx cronus-ui add <slug>--<id>. Omitted when the block has a single default.

Variants

Every published look for this block.

Skip Payment Method variants table
IdNameDescription
selectSelect methodPick a saved card from a radio list, mark a default, or add a new payment method.
add-cardAdd cardA new-card form with cardholder, number, expiry, CVC, and a set-as-default toggle.