fix: update button size handling in CTA component

- Changed the size prop for the CTA button to use "custom" instead of undefined for better consistency.
- Added "custom" variant to button styles for improved flexibility.
This commit is contained in:
Dhruwang
2026-03-19 17:17:40 +05:30
parent c78043c9df
commit aaaf55735c
2 changed files with 2 additions and 1 deletions

View File

@@ -95,7 +95,7 @@ function CTA({
disabled={disabled}
className="text-button font-button-weight flex items-center gap-2"
variant={buttonVariant}
size={buttonVariant === "custom" ? null : undefined}>
size={"custom"}>
{buttonLabel}
<SquareArrowOutUpRightIcon className="size-4" />
</Button>

View File

@@ -23,6 +23,7 @@ const buttonVariants = cva(
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
icon: "size-9",
custom: "",
},
},
defaultVariants: {