Skip to main content

Coupon Form

<sc-coupon-form></sc-coupon-form>

This component let users create coupon form.

Apply Coupon

Component Codex

Properties

PropertyDescriptionTypeDefault
busyIs the form calculatingboolean
buttonTextThe text for apply buttonstring
collapsedboolean
currencyCurrencystring
discountThe discountDiscountResponse
discountAmountThe discount amountnumber
errorThe error messagestring
forceOpenForce the form to showboolean
labelThe label for the coupon formstring
loadingIs the form loadingboolean
openIs it openboolean
placeholderThe placeholder for the inputstring
showIntervalHas recurringboolean

Events

EventDescriptionType
scApplyCouponWhen the coupon is appliedCustomEvent<string>

Shadow Parts

PartDescription
amountThe discount amount.
baseThe elements base wrapper.
block-uiThe block ui base component.
block-ui__contentThe block ui content (spinner).
button__baseThe button base element.
button__labelThe button label.
coupon-tagThe coupon tag.
discountThe discount displayed (% off)
discount-labelThe discount label.
error__baseThe error base.
error__iconThe error icon
error__messageThe error message.
error__textThe error text.
error_titleThe error title.
formThe form.
infoThe discount info.
inputThe input.
input__baseThe input base.
input__form-controlThe input form control.
label