fix: add intents for buttons

This commit is contained in:
Christel Westerberg
2024-04-11 16:47:35 +02:00
parent 85b83bc58b
commit a99b2d3f08
17 changed files with 171 additions and 130 deletions

View File

@@ -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}
/>
)
}