Brijesh's Git Server — navigator-v2 @ 19f964e87980aeb2d2f6a016091d7bfe1bdb3732

web/src/components/ui/Button.js (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
export function Button({ children, variant = "primary", ...props }) {
  const baseStyles = "px-4 py-2 rounded-md font-medium transition-colors";

  const variants = {
    primary: "bg-blue-500 text-white hover:bg-blue-600 disabled:bg-blue-300",
    destructive: "bg-red-500 text-white hover:bg-red-600 disabled:bg-red-300",
  };

  return (
    <button className={`${baseStyles} ${variants[variant]}`} {...props}>
      {children}
    </button>
  );
}