Component

3D Button

Buttons with 3D depth effects and push animations

  • Component
  • Tailwind
  • MIT

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.site/library/tailwind/components/buttons/3d-button/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Buttons/3d-button
registry path: Tailwind/Components/Buttons/3d-button

Source

Implementation

code.html
<!-- 3D Pink Gradient Button -->
<button class="px-8 py-3 bg-gradient-to-b from-pink-500 to-pink-600 text-white font-bold rounded-lg shadow-[0_6px_0_#be185d] hover:from-pink-600 hover:to-pink-700 active:translate-y-[4px] active:shadow-[0_2px_0_#be185d] focus:outline-none focus:ring-2 focus:ring-pink-400 transition-all">
  Pink 3D
</button>

<!-- 3D Purple Gradient Button -->
<button class="px-8 py-3 bg-gradient-to-b from-purple-500 to-purple-600 text-white font-bold rounded-lg shadow-[0_6px_0_#7c3aed] hover:from-purple-600 hover:to-purple-700 active:translate-y-[4px] active:shadow-[0_2px_0_#7c3aed] focus:outline-none focus:ring-2 focus:ring-purple-400 transition-all">
  Purple 3D
</button>

<!-- 3D Orange Gradient Button -->
<button class="px-8 py-3 bg-gradient-to-b from-orange-400 to-orange-500 text-white font-bold rounded-lg shadow-[0_6px_0_#c2410c] hover:from-orange-500 hover:to-orange-600 active:translate-y-[4px] active:shadow-[0_2px_0_#c2410c] focus:outline-none focus:ring-2 focus:ring-orange-300 transition-all">
  Orange 3D
</button>
14 lines UTF-8 · LF · Spaces: 2
DevSnips AI ready Claude · Cursor · Windsurf

Agent skill & Model Context Protocol

Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.

devsnips://components/buttons/3d-button
Prompt instruction
I want to use this DevSnips resource in production:

Page:
https://devsnips.site/library/tailwind/components/buttons/3d-button/

Install: npx devsnips add
Tailwind/Components/Buttons/3d-button

This is the 3D Button — Buttons with 3D depth effects and push animations

Use this DevSnips resource as the starting point for my project.
Adapt it to my project's stack and conventions, fix any issues,
and make it production-ready while preserving its intended design
and behavior.

Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.

Resource URI
devsnips://components/buttons/3d-button