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