TetraKits UI Ghost Outline Button ← Library

Ghost Outline Button

shadcn outline button + Framer Motion: violet border glow, subtle fill, and shadow on hover. Secondary “View components” for dark TetraKits heroes.

ghost button reactoutline button hover21st dev shadcnviolet glow buttonsecondary cta
Live preview

Dependencies

react framer-motion
npm install framer-motion
"use client";

import { motion } from "framer-motion";

export function GhostOutlineButton({ label = "View components" }: { label?: string }) {
  return (
    <motion.button
      whileHover={{
        y: -2,
        scale: 1.03,
        borderColor: "rgba(167,139,250,0.65)",
        backgroundColor: "rgba(139,92,246,0.08)",
        boxShadow: "0 0 24px rgba(139,92,246,0.15)",
      }}
      whileTap={{ scale: 0.97 }}
      transition={{ type: "spring", stiffness: 400, damping: 22 }}
      className="rounded-xl border border-zinc-600/80 bg-transparent px-5 py-2.5 text-sm font-medium text-zinc-200 backdrop-blur-sm"
    >
      {label}
    </motion.button>
  );
}