diff --git a/src/components/Buttons/SvgButtonLink.tsx b/src/components/Buttons/SvgButtonLink.tsx index 4deca31735d..eb0741fa6a3 100644 --- a/src/components/Buttons/SvgButtonLink.tsx +++ b/src/components/Buttons/SvgButtonLink.tsx @@ -1,3 +1,4 @@ +import { cva, VariantProps } from "class-variance-authority" import type { FC, ReactNode, SVGProps } from "react" import { cn } from "@/lib/utils/cn" @@ -13,13 +14,28 @@ type SvgButtonLinkProps = { size?: number } +const variants = cva("flex items-center gap-3.5", { + variants: { + variant: { + col: "flex-col text-center [&_.body]:text-center", + row: "flex-row text-start [&_.body]:text-left [&_.header]:self-start", + }, + }, + defaultVariants: { + variant: "row", + }, +}) + +type Variants = VariantProps + const SvgButtonLink = ({ label, children, Svg, className, + variant, ...props -}: SvgButtonLinkProps) => ( +}: SvgButtonLinkProps & Variants) => ( -
+
-
+
{label &&

{label}

} {children}