Sort Controls with active state toggling between grouped buttons.
npx shadcn@latest add @shadcnblocks/button-group-button-group-interactive-2
Sign in or get a license at Shadcn Blocks to see its source and install it.