Button Colorful
Button Colorful is a React and Tailwind CSS button component written for NedDev and yours to ship. Copy it and paste it into your project.
NedDev
buttons
What it is
Button Colorful is a React and Tailwind CSS button component written for NedDev and yours to ship. Copy it and paste it into your project.
How to use it
Open it in the catalogue, press copy, and paste it into your project. The prompt you copy carries the code and the rules that tell your agent to reproduce it without changing anything.
Four free copies a week. No card.
Needs
npm i lucide-react
Licence
This component was written for this catalogue. It is yours to ship in client work and in products you sell, under the terms of use.
Button Colorful
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
import { ArrowUpRight } from "lucide-react";
interface ButtonColorfulProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
label?: string;
}
export function ButtonColorful({
className,
label = "Explore Components",
...props
}: ButtonColorfulProps) {
return (
<Button
className={cn(
"relative h-10 px-4 overflow-hidden",
"bg-zinc-900 dark:bg-zinc-100",
"transition-all duration-200",
"group",
className
)}
{...props}
>
{/* Gradient background effect */}
<div
className={cn(
"absolute inset-0",
"bg-gradient-to-r from-indigo-500 via-purple-500 to-pink-500",
"opacity-40 group-hover:opacity-80",
"blur transition-opacity duration-500"
)}
/>
{/* Content */}
<div className="relative flex items-center justify-center gap-2">
<span className="text-white dark:text-zinc-900">{label}</span>
<ArrowUpRight className="w-3.5 h-3.5 text-white/90 dark:text-zinc-900/90" />
</div>
</Button>
);
}