How to make the checkbox extension required

Hi, I need to make a checkbox required before clicking on “Pay Now”. How can I change this extension’s code to make it required? Thank you!

import {render, Checkbox} from '@shopify/checkout-ui-extensions-react';
render('Checkout::Dynamic::Render', () =>

Hi there :waving_hand:

I would recommend taking a look at this tutorial for adding validation to your Checkout UI Extension.

You will need to use the BuyerJourney Intercept to block the checkout progress if the checkbox is not checked.