test setup lackin

This commit is contained in:
2025-09-03 22:04:56 +02:00
parent 869cc07fdd
commit 276c3dd75f
35 changed files with 629 additions and 285 deletions

View File

@@ -40,16 +40,20 @@ function Button({
variant,
size,
asChild = false,
submit = false,
...props
}: React.ComponentProps<"button"> &
VariantProps<typeof buttonVariants> & {
asChild?: boolean
submit?: boolean
}) {
const Comp = asChild ? Slot : "button"
return (
<Comp
data-slot="button"
type={submit ? "submit" : props.type}
data-testid={submit ? "form-submit" : undefined}
className={cn(buttonVariants({ variant, size, className }))}
{...props}
/>