Introducing Magic UI Pro - 50+ blocks and templates to build beautiful landing pages in minutes.


Docs
Neon Gradient Card

Neon Gradient Card

A beautiful neon card effect

Neon Gradient Card

Installation

Run the following command:

npx magicui-cli add neon-gradient-card

Update tailwind.config.js

Add the following animations to your tailwind.config.js file:

tailwind.config.js
/** @type {import('tailwindcss').Config} */
module.exports = {
  theme: {
    extend: {
      animation: {
        backgroundPositionSpin:
          "background-position-spin 3000ms infinite alternate",
      },
      keyframes: {
        "background-position-spin": {
          "0%": { backgroundPosition: "top center" },
          "100%": { backgroundPosition: "bottom center" },
        },
      },
    },
  },
};

Props

PropTypeDescriptionDefault
classNamestringThe class name to be applied to the component-
childrenReactNodeChildren elements-
borderSizenumberThe size of the border5
borderRadiusnumberThe size of the radius20
neonColorsobjectThe colors of the neon gradient{ firstColor: "#ff00aa", secondColor: "#00FFF1" }

Credits