web / useAgreementCheckbox
Function: useAgreementCheckbox() ​
useAgreementCheckbox(
source
):UseAgreementCheckboxMethods
Defined in: apps/web/composables/useAgreementCheckbox/useAgreementCheckbox.ts:14
Parameters ​
source ​
string
string
Returns ​
UseAgreementCheckboxReturn
Description ​
Composable for managing agreement checkboxes.
Example ​
ts
const {
checkboxValue, showErrors, setCheckboxValue, setShowErrors
} = useAgreementCheckbox('checkoutGeneralTerms');