A highly configurable switch component using modern CSS techniques

Andy Bell shows how to build a highly configurable switch component using modern CSS, such as :has()
, container queries, Logical Properties, and Custom Properties.
(The native switch component is coming to browsers sometime in the future. I demonstrate how native CSS switch works in this quick tip.)