millaistudio

M Button

Buttons

About

A simple button with primary, secondary, plain and ghost colour variants and an optional compact mode for icon-only buttons, ported from the MillaiUI Vue component library.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds M Button to your project and fits it to your theme.

Code

How M Button is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import MButton from "@/components/ui/mbutton";

export default function MButtonDemo() {
  const handleSave = () => {
    // synthetic handler for the demo
    console.log("saved");
  };

  return (
    <div className="flex items-center gap-4 p-8">
      <MButton onClick={handleSave}>保存</MButton>
      <MButton variant="secondary">あとで</MButton>
      <MButton variant="ghost" compact aria-label="閉じる">
        ×
      </MButton>
    </div>
  );
}

More by millaistudio

View all
  • M Switch

    M Switch

    7
  • Tab Bar Item

    Tab Bar Item

    4
  • MCheckbox

    MCheckbox

    4
  • MListItem

    MListItem

    3
  • Segmented Control

    Segmented Control

    3
  • MBadge

    MBadge

  • MCard

    MCard

  • Side Panel Item

    Side Panel Item

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113