Open History to see the last commit
1import * as React from 'react'
2β
3import { type buttonVariantProps, buttonVariants } from './variants'
4β
5type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> &
6 buttonVariantProps
7β
8const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
9 ({ className, base = true, variant, size, ...props }, ref) => {
10 return (
11 <button
12 className={buttonVariants({ className, base, variant, size })}
13 ref={ref}
14 {...props}
15 />
16 )
17 },
18)
19β
20Button.displayName = 'Button'
21β
22export { Button, type ButtonProps }