diff --git a/src/app/components/ui/Button.tsx b/src/app/components/ui/Button.tsx new file mode 100644 index 0000000..713acd3 --- /dev/null +++ b/src/app/components/ui/Button.tsx @@ -0,0 +1,23 @@ +"use client"; +import React from "react"; + +type Props = React.ButtonHTMLAttributes & { + variant?: "primary" | "secondary" | "ghost"; +}; + +export function Button({ variant = "primary", style, ...props }: Props) { + const base: React.CSSProperties = { + padding: "8px 12px", + borderRadius: 6, + border: "1px solid transparent", + cursor: "pointer", + }; + const variants: Record, React.CSSProperties> = { + primary: { background: "#111", color: "#fff" }, + secondary: { background: "#eee", color: "#111" }, + ghost: { background: "transparent", borderColor: "#ddd", color: "#111" }, + }; + return