aboutsummaryrefslogtreecommitdiff
path: root/packages/ui/text/title/title-2-bold.tsx
blob: 38bbe34e03410fff44187cf190c9547a8b508b44 (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 Title2Bold({
	className,
	asChild,
	...props
}: React.ComponentProps<"h2"> & { asChild?: boolean }) {
	const Comp = asChild ? Root : "h2";
	return (
		<Comp
			className={cn(
				"text-lg sm:text-xl md:text-2xl lg:text-3xl font-bold leading-[48px] tracking-[-0.4px]",
				className,
			)}
			{...props}
		/>
	);
}