30 lines
815 B
TypeScript
Raw Normal View History

2024-04-15 23:25:14 -04:00
import * as React from "react"
2024-04-16 16:25:21 -04:00
import { Plus } from "lucide-react"
2024-04-15 23:25:14 -04:00
import { cn } from "@/lib/utils"
2024-04-16 16:25:21 -04:00
const Button = ({
children,
className,
onClick,
}: {
children: React.ReactNode
className?: string
onClick?: () => void
}) => {
2024-04-15 23:25:14 -04:00
return (
2024-04-16 16:25:21 -04:00
<button
onClick={onClick}
className={cn(
className,
2024-04-18 03:06:51 -04:00
"gradient-button-bg p-[1px] inline-flex group rounded-md text-sm font-medium focus-visible:ring-offset-2 focus-visible:ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"
2024-04-16 16:25:21 -04:00
)}
>
<div className="rounded-[6px] w-full gradient-button flex items-center justify-center whitespace-nowrap px-4 py-2 h-9">
2024-04-18 14:42:47 -04:00
{children}
2024-04-15 23:25:14 -04:00
</div>
</button>
)
}
export default Button