aboutsummaryrefslogtreecommitdiff
path: root/packages/ui/text/heading/heading-h2-medium.tsx
blob: afac0a425bc72a76c35931e112c555a82bdeb638 (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 HeadingH2Medium({
	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-medium leading-[30px] tracking-[-0.4px]",
				className,
			)}
			{...props}
		/>
	);
}