Safari 17.4 introduced a native HTML switch element, progressively enhancing with the switch attribute. A polyfill is available for browsers lacking native support, adding accessibility features like ARIA roles and high-contrast support. The polyfill also handles writing modes and directionality, and is available on npm and GitHub.