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