import * as React from "react" import { Slot } from "@radix-ui/react-slot" import { type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" import { buttonVariants } from "./button-variants" export interface ButtonProps extends React.ButtonHTMLAttributes, VariantProps { asChild?: boolean } const Button = React.forwardRef( ({ className, variant, size, asChild = false, ...props }, ref) => { const Comp = asChild ? Slot : "button" return ( ) } ) Button.displayName = "Button" export { Button }