About
A container that visually joins a row (or stack) of buttons into one shared-outline group, collapsing the border between adjacent buttons; ported to React from hemingtsai's Zemponet Vue component library (MIT), credit to the original author.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Button Group to your project and fits it to your theme.
Code
How Button Group is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import ZButton from "@/components/ui/z-button-group-utils/z-button";
import ZButtonGroup from "@/components/ui/z-button-group";
export default function ZButtonGroupBlockDemo() {
return (
<div className="flex items-center justify-center p-10">
<div className="w-full max-w-sm">
<ZButtonGroup block>
<ZButton>上一步</ZButton>
<ZButton variant="primary">下一步</ZButton>
</ZButtonGroup>
</div>
</div>
);
}










