A toggle group is the segmented control: a tray of segments where the selected one is solid ink.
npx shadcn@latest add https://trayui.com/r/toggle-group.json
toggle-group