Code Block

17/59
DocsAll
ReactButton.tsx
import { cn } from "@/lib/utils"interface ButtonProps {  children: React.ReactNode  variant?: "primary" | "secondary"  onClick?: () => void}export function Button({  children,  variant = "primary",  onClick}: ButtonProps) {  return (    <button      className={cn(        "px-4 py-2 rounded-lg font-medium",        variant === "primary"          ? "bg-blue-500 text-white"          : "bg-gray-200 text-gray-800"      )}      onClick={onClick}    >      {children}    </button>  )}