blob: 6711de503bd76c8d4824cca326c808a788748a33 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import { cn } from "@lib/utils";
import { Root } from "@radix-ui/react-slot";
export function HeadingH2Bold({
className,
asChild,
...props
}: React.ComponentProps<"h2"> & { asChild?: boolean }) {
const Comp = asChild ? Root : "h2";
return (
<Comp
className={cn(
"text-xs sm:text-sm md:text-base lg:text-lg font-bold leading-[30px] tracking-[-0.4px]",
className,
)}
{...props}
/>
);
}
|