Segmented choice control
A compact segmented control for switching between two or three views.
Edit CSS live
Open folder
A compact segmented control for switching between two or three views.
Create an accessible segmented choice control with semantic buttons and dependency-free CSS. Use aria-pressed states, responsive wrapping from 320px, visible keyboard focus, and a clear selected style.