James McCool
Remove PostCSS and Tailwind configuration files, and refactor CSS styles in index.css to implement custom styles. Update button and table components to use new class names for styling consistency. Delete utility functions for class name merging.
a458144
raw
history blame
389 Bytes
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
const Comp = asChild ? Slot : "button"
return (
<Comp
className={`btn btn-primary ${className || ''}`}
ref={ref}
{...props}
/>
)
})
Button.displayName = "Button"
export { Button }