hemingtsai

Button Group

Buttons

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 ZButtonGroupVerticalDemo() {
  return (
    <div className="flex items-center justify-center p-10">
      <ZButtonGroup vertical>
        <ZButton>保存</ZButton>
        <ZButton>另存为副本</ZButton>
        <ZButton variant="ghost">放弃修改</ZButton>
      </ZButtonGroup>
    </div>
  );
}

More by hemingtsai

View all
  • Status Banner

    Status Banner

  • ZCheckbox

    ZCheckbox

  • Floating Action Button

    Floating Action Button

More in Buttons

View all
  • Hero Button

    Hero Button

    21
  • Button

    Button

    141
  • Eclipse Button

    Eclipse Button

    9
  • Button

    Button

    19
  • Texture Button

    Texture Button

    110
  • Random Letter Swap CTA Buttons

    Random Letter Swap CTA Buttons

    64
  • HeroUI Toggle Button

    HeroUI Toggle Button

  • Icon Label Subtext Button

    Icon Label Subtext Button

    65