aboutsummaryrefslogtreecommitdiff
path: root/packages/ui/text/heading/heading-h4-bold.tsx
blob: 5e99c0310da119987473a9f24dd86e2e3750b777 (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 HeadingH4Bold({
	className,
	asChild,
	...props
}: React.ComponentProps<"h4"> & { asChild?: boolean }) {
	const Comp = asChild ? Root : "h4";
	return (
		<Comp
			className={cn(
				"text-[0.5rem] sm:text-[0.625rem] md:text-xs lg:text-sm font-bold leading-[24px] tracking-[-0.4px]",
				className,
			)}
			{...props}
		/>
	);
}