Ability for user to toggle shipping options

Currently on our store we have custom functionality using JavaScript from within checkout.liquid to show a “Signature required” checkbox. This checkout toggles shipping options to include or exclude the “Signature Required” rate and makes the UI a tidier and UX nicer.

Our use case:

With a Delivery Customization function we can hide options that aren’t applicable to the user, and they are left with 4 options:

  • Standard Delivery

  • Standard Delivery with Signature Required

  • Express Delivery

  • Express Delivery with Signature Required

On our existing site we are able to show a “Signature Required” checkbox to display either:

  • Standard Delivery

  • Express Delivery

or:

  • Standard Delivery with Signature Required

  • Express Delivery with Signature Required

rather than all options at once.

Will this kind of thing be available via functions or UI extension?