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