supermemory/packages/ui/text/heading/heading-h2-medium.tsx
2025-08-21 08:40:44 -07:00

19 lines
416 B
TypeScript

import { cn } from "@lib/utils";
import { Root } from "@radix-ui/react-slot";
export function HeadingH2Medium({
className,
asChild,
...props
}: React.ComponentProps<"h2"> & { asChild?: boolean }) {
const Comp = asChild ? Root : "h2";
return (
<Comp
className={cn(
"text-xs sm:text-sm md:text-base lg:text-lg font-medium leading-[30px] tracking-[-0.4px]",
className,
)}
{...props}
/>
);
}