Switch

<s-switch>

Turn a setting on or off and reflect the change immediately.

Official Shopify docsPolaris 2.0 web component

Storefront visibility

Use a switch for a setting that takes effect as soon as the merchant toggles it.

Switch with a visually hidden label

Keep a label available to screen readers when a nearby setting name is already visible.