6 lines
295 B
TypeScript
6 lines
295 B
TypeScript
type Props = React.ButtonHTMLAttributes<HTMLButtonElement> & { variant?: "primary" | "secondary" | "ghost" | "danger" };
|
|
|
|
export default function Button({ variant = "secondary", className = "", ...props }: Props) {
|
|
return <button className={`btn btn-${variant} ${className}`} {...props} />;
|
|
}
|