feat: finish my pages overview page according to wireframe
This commit is contained in:
17
components/TempDesignSystem/Button/index.tsx
Normal file
17
components/TempDesignSystem/Button/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
"use client"
|
||||
|
||||
import { Slot } from "@radix-ui/react-slot"
|
||||
|
||||
import { buttonVariants } from "./variants"
|
||||
|
||||
import type { ButtonProps } from "./button"
|
||||
|
||||
export default function Button({
|
||||
asChild = false,
|
||||
className,
|
||||
variant,
|
||||
...props
|
||||
}: ButtonProps) {
|
||||
const Comp = asChild ? Slot : "button"
|
||||
return <Comp className={buttonVariants({ className, variant })} {...props} />
|
||||
}
|
||||
Reference in New Issue
Block a user