Skip to main content

Tax Id Input

<sc-tax-id-input></sc-tax-id-input>

This component let users create tax id input.

Component Codex

Properties

PropertyDescriptionTypeDefault
auAbnLabelAU zone labelstring__('ABN Number', 'surecart')
caGstLabelGST zone labelstring__('GST Number', 'surecart')
countryThe country code.string
euVatLabelEU zone labelstring__('EU VAT', 'surecart')
gbVatLabelUK zone labelstring__('UK VAT', 'surecart')
helpHelp text.string
loadingIs this loading?boolean
numberTax ID Numberstringnull
otherLabelOther zones labelstring__('Tax ID', 'surecart')
requiredRequired?booleanfalse
showForce show the field.booleanfalse
statusThe status"invalid" | "unknown" | "valid"'unknown'
typeType of tax idstring'other'

Events

EventDescriptionType
scChangeMake a request to update the order.CustomEvent<{ number: string; number_type: string; }>
scInputMake a request to update the order.CustomEvent<{ number?: string; number_type?: string; }>
scInputTypeChange the TypeCustomEvent<string>
scSetStateSet the checkout state.CustomEvent<string>