Segmented control, part of the Blocks family.
npx shadcn@latest add https://caliperui.site/r/segmented-control.json
segmented-control