import type { ButtonHTMLAttributes, ReactNode } from "react";
export type ButtonProps = {
variant?: "primary" | "secondary" | "danger" | "ghost";
size?: "md" | "lg";
icon?: ReactNode;
loading?: boolean;
} & ButtonHTMLAttributes;
export function Button({ variant = "secondary", size = "md", icon, loading, className, children, disabled, type = "button", ...rest }: ButtonProps) {
const cls = ["ui-btn", `ui-btn--${variant}`, `ui-btn--${size}`, className].filter(Boolean).join(" ");
return (
);
}
export function IconButton({ label, icon, className, title, type = "button", ...rest }: { label: string; icon: ReactNode } & ButtonHTMLAttributes) {
return (
);
}