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 ZButtonGroupAttachedDemo() {
  return (
    <div className="flex flex-col items-center justify-center gap-3 p-10">
      <ZButtonGroup>
        <ZButton size="sm">编辑</ZButton>
        <ZButton size="sm">复制</ZButton>
      </ZButtonGroup>
      <ZButtonGroup attached={false}>
        <ZButton size="sm">编辑</ZButton>
        <ZButton size="sm">复制</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
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1