Segmented buttons group related options together and allow the user to toggle them.
npm install --save-dev @smui/segmented-button
https://sveltematerialui.com/demo/segmented-button
See Toggle button in the Material design spec.
See Segmented Buttons in MDC-Web for information about the upstream library's architecture.