feat(WEB-154): my profile view
This commit is contained in:
@@ -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} />
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user