Set size="sm" in a table or a menu. A switch with no text beside it needs aria-label.
pnpm dlx shadcn@latest add "https://kinoui.com/r/switch-3.json"