Next Commerce
CheckoutReference

CSS Classes

CSS classes the checkout enhancers add and remove. Style these to match your theme; do not rely on them as JavaScript hooks.

Field State

ClassMeaning
no-errorField passed validation
has-errorField failed validation
next-error-fieldField is in an error state
next-valid-fieldField is valid
next-neutral-fieldField has no validation state yet
next-errorError message element
addErrorIconShow the error icon on the field
addTickShow the success checkmark on the field
has-valueField has a value (used for floating labels)

Form State

ClassMeaning
next-processingThe form is submitting / calling the API
next-loadingA section is loading

Location Fields

ClassMeaning
next-location-hiddenThe city/state/postal block is hidden until address1 is entered
next-hiddenGeneric hidden state

Billing Form

ClassMeaning
billing-form-expandedBilling form is fully open
billing-form-collapsedBilling form is fully closed

Payment Method

ClassMeaning
next-selectedThe selected payment method element
payment-method__form--expandedPayment form section is open
payment-method__form--collapsedPayment form section is closed
payment-method__form--expandingPayment form is animating open
payment-method__form--collapsingPayment form is animating closed

Express Checkout

ClassMeaning
next-cart-emptyApplied to express buttons when the cart is empty (disabled)

Review Block

ClassMeaning
next-review-emptyA review element whose value is empty (showing its fallback)

On this page