Components

Swap

Swap — a single control that flips between two faces in place, such as play/pause, menu/close, or a lights-on/lights-off setting. Use it when one tap moves between two mirrored states and you want the transition to read as motion rather than a jump; for a labelled on/off form setting reach for a toggle instead. Choose the `effect` axis to spin the faces (`rotate`, the default) or turn them over (`flip`). It drives a real hidden checkbox, so it toggles on click and by keyboard and reports back through `onChange`. Keep the two faces the same size so nothing shifts as they trade places.