A tailwindcss-buttons component from Aceternity UI.
From Aceternity UI
1"use client";
2import React from "react";
3import { IconClipboard } from "@tabler/icons-react";
4import { cn } from "@/lib/utils";
5
6export const ButtonsCard = ({
7 children,
8 className,
9 onClick,
10}: {
11 children?: React.ReactNode;
12 className?: string;
13 onClick?: () => void;
14}) => {
15 return (
16 <div
17 onClick={onClick}
18 className={cn(
19 "h-60 w-full bg-white rounded-xl border border-neutral-100 dark:bg-black dark:border-white/[0.2] hover:border-neutral-200 group/btn overflow-hidden relative flex items-center justify-center",
20 className
21 )}
22 >
23 <div className="absolute inset-0 dark:bg-dot-white/[0.1] bg-dot-black/[0.1]" />
24 <IconClipboard className="absolute top-2 right-2 text-neutral-300 group-hover/btn:block hidden h-4 w-4 transition duration-200" />
25 <div className="relative z-40">{children}</div>
26 </div>
27 );
28};
29