feat(WEB-154): my profile view

This commit is contained in:
Simon Emanuelsson
2024-04-05 08:28:20 +02:00
parent 3b05b9f205
commit 82e4d40203
95 changed files with 1239 additions and 196 deletions
+13 -7
View File
@@ -8,16 +8,22 @@ import type { ButtonProps } from "./button"
export default function Button({
asChild = false,
bgcolor,
className,
disabled,
size,
variant,
intent,
weight,
...props
}: ButtonProps) {
const Comp = asChild ? Slot : "button"
return (
<Comp
className={buttonVariants({ className, variant, intent })}
{...props}
/>
)
const classNames = buttonVariants({
bgcolor,
className,
disabled,
size,
variant,
weight,
})
return <Comp className={classNames} disabled={disabled} {...props} />
}