Tactile 3D

Tactile 3D: Universal 3D button with tactile keycap shadows — pass any children (label, icon + label). Variants: solid, soft, muted. Sizes: sm, md, lg, icon. Press sinks the key in. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.

Install Tactile 3D

npx motion-ui-skill add 3d-button

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

Dependencies

  • clsx
  • react
  • tailwind-merge

Source files

Tactile 3D

Universal 3D button with tactile keycap shadows — pass any children (label, icon + label). Variants: solid, soft, muted. Sizes: sm, md, lg, icon. Press sinks the key in.

Install

npx motion-ui-skill add 3d-button

Dependencies

  • clsx
  • react
  • tailwind-merge

Usage

"use client";

import { ThreeDButton } from "@/components/buttons/three-d-button";

export function ThreeDButtonDemo() {
  return (
    <div className="flex items-center justify-center p-6">
      <ThreeDButton />
    </div>
  );
}

API Reference

ThreeDButton

Prop Type Default Required Description
className string — No Additional CSS classes

Browse this category