One choice among a few, in a row with a moving indicator.
npx shadcn@latest add @uiset/segmented-control
segmented-control