mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-06 08:16:03 +00:00
19 lines
416 B
TypeScript
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}
|
|
/>
|
|
);
|
|
}
|