Put a SplitButtonAction and a Menu holding a SplitButtonTrigger in a SplitButton. loading runs the action and holds both halves.
pnpm dlx shadcn@latest add "https://kinoui.com/r/split-button-1.json"