import { type ButtonHTMLAttributes, type ReactNode, type Ref } from "react";
import {
BUTTON_BASE_CLASSES,
BUTTON_DISABLED_CLASSES,
BUTTON_ICON_ONLY_SIZE_CLASSES,
BUTTON_SIZE_CLASSES,
BUTTON_VARIANT_CLASSES,
type ButtonSize,
type ButtonVariant,
} from "./button-classes";
interface ButtonProps extends ButtonHTMLAttributes {
ref?: Ref;
variant?: ButtonVariant;
size?: ButtonSize;
loading?: boolean;
icon?: ReactNode;
iconOnly?: boolean;
}
export function Button({
ref,
variant = "secondary",
size = "md",
loading = false,
icon,
iconOnly = false,
children,
disabled,
className,
...rest
}: ButtonProps) {
return (
);
}