fix: add intents for buttons
This commit is contained in:
@@ -10,8 +10,14 @@ export default function Button({
|
||||
asChild = false,
|
||||
className,
|
||||
variant,
|
||||
intent,
|
||||
...props
|
||||
}: ButtonProps) {
|
||||
const Comp = asChild ? Slot : "button"
|
||||
return <Comp className={buttonVariants({ className, variant })} {...props} />
|
||||
return (
|
||||
<Comp
|
||||
className={buttonVariants({ className, variant, intent })}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user