checkout-page

Checkout Page

A one-page checkout: contact, delivery, shipping method and payment cards, with the order summary card on a brand-coloured half that folds into a bar on narrow screens.

Parts

PartFileDoes
CheckoutPageCheckoutPage.vueA one-page checkout: contact, delivery, shipping method and payment beside an order summary that folds into a bar on narrow screens.

Styling

All of Checkout Page’s styles live in checkout-page.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue
reka-ui

Built from

API reference

CheckoutPage.vue

A one-page checkout: contact, delivery, shipping method and payment beside an order summary that folds into a bar on narrow screens. Renders a <div>.

Props 69

PropTypeDefault
itemsCartLine[][]
defaultValuesPartial<CheckoutValues>—
currencystring'EUR'
localestring—
storeNamestring''
countriesCheckoutOption[][ { value: 'DE', label: 'Germany' }, { value: 'AT', label: 'Austria' }, { value: 'CH', label: 'Switzerland' }, { value: 'GB', label: 'United Kingdom' }, { value: 'US', label: 'United States' }, ]
defaultCountrystring'DE'
houseNumberCountriesstring[]['DE', 'AT', 'CH', 'NL']
shippingMethodsShippingMethod[][ { value: 'standard', label: 'Standard', description: '3 to 5 working days', amount: 499, freeFrom: 10000 }, { value: 'express', label: 'Express', description: 'Next working day', amount: 1290 }, ]
paymentMethodsPaymentMethod[][ { value: 'card', label: 'Credit card' }, { value: 'paypal', label: 'PayPal', description: 'After you click Pay now, PayPal opens to finish your purchase.' }, ]
cardMethodstring'card'
discountsAppliedDiscount[][]
taxRatenumber—
signInHrefstring—
secureLabelstring'Secure checkout'
contactTitlestring'Contact'
contactDescriptionstring'We send the order confirmation here.'
signInLabelstring'Sign in'
emailLabelstring'Email'
emailHelpstring'We send your order confirmation and shipping updates here.'
newsletterLabelstring'Email me with news and offers'
deliveryTitlestring'Delivery'
deliveryDescriptionstring'Where should we send your order?'
countryLabelstring'Country/Region'
firstNameLabelstring'First name'
lastNameLabelstring'Last name'
streetLabelstring'Street'
addressLabelstring'Address'
houseNumberLabelstring'Building number'
apartmentLabelstring'Apartment, suite, etc. (optional)'
zipLabelstring'Postal code'
cityLabelstring'City'
phoneLabelstring'Phone'
phoneHelpstring'In case we need to reach you about your order.'
phoneNotestring'Please use your mobile phone number.'
shippingTitlestring'Shipping method'
shippingPendingstring'Enter your shipping address to view available shipping methods.'
freeLabelstring'Free'
paymentTitlestring'Payment'
paymentDescriptionstring'All transactions are secure and encrypted.'
cardBrandsPaymentCardBrand[]['visa', 'mastercard', 'amex']
cardNumberLabelstring'Card number'
expiryLabelstring'Expiration date'
cvcLabelstring'Security code'
cvcHelpstring'The 3 or 4 digits on the back of your card.'
cardNameLabelstring'Name on card'
billingSameLabelstring'Use shipping address as billing address'
billingTitlestring'Billing address'
rememberLabelstring'Save my details for a faster checkout'
rememberPhoneLabelstring'Mobile phone (optional)'
rememberNotestring'Next time we text you a code and fill in the rest.'
payLabelstring'Pay now'
summaryLabelstring'Order summary'
discountLabelstring'Discount code or gift card'
discountPlaceholderstring'Enter a code'
discountHintstring—
applyLabelstring'Apply'
addDiscountLabelstring'Add discount'
removeDiscountLabel((label: string) => string)`Remove ${label}`
subtotalLabelstring'Subtotal'
shippingLabelstring'Shipping'
shippingUnknownstring'Enter shipping address'
minusSignstringMINUS_SIGN
totalLabelstring'Total'
itemCountLabel((count: number) => string)count === 1 ? '1 item' : `${count} items`
taxNote((tax: string) => string)`Including ${tax} in taxes`
quantityLabel((quantity: number) => string)`Qty: ${quantity}`
classClassValue—

Events 3

EventPayload
place-ordervalues: CheckoutValues
apply-discountcode: string
remove-discountdiscount: AppliedDiscount

Slots 1

SlotSlot props

Recipe checkout-page-root 1 group

Recipe checkout-page-summary 1 group

Recipe checkout-page-summary-toggle 1 group

Recipe checkout-page-total-image 1 group

Recipe section-title 1 group

Recipe meta 1 group

Recipe total 1 group

Recipe focus-ring 1 group

Checkout Page
State