Minecraft Button

Minecraft Button: Pixel stone menu button that cracks upon repeated clicks, shatters into chips, and drops an item to respawn. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Minecraft Button

npx motion-ui-skill add minecraft-button

Components install as source into your project. The interactive page also includes preview, code, documentation and install tabs.

Dependencies

  • clsx
  • react
  • react-dom
  • tailwind-merge

Source files

Minecraft Button

Pixel stone menu button that cracks upon repeated clicks, shatters into chips, and drops an item to respawn.

Install

npx motion-ui-skill add minecraft-button

Dependencies

  • clsx
  • react
  • react-dom
  • tailwind-merge

Usage

"use client";

import { MinecraftButton } from "@/components/buttons/minecraft-button";

export function MinecraftButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <MinecraftButton>Click Me</MinecraftButton>
    </div>
  );
}

API Reference

MinecraftButton

Prop Type Default Required Description
className string — No Additional CSS classes
children React.ReactNode — No Button label content

Browse this category