mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-05 08:06:19 +00:00
19 lines
431 B
TypeScript
19 lines
431 B
TypeScript
import { cn } from "@lib/utils";
|
|
import { Root } from "@radix-ui/react-slot";
|
|
|
|
export function Title2Medium({
|
|
className,
|
|
asChild,
|
|
...props
|
|
}: React.ComponentProps<"h2"> & { asChild?: boolean }) {
|
|
const Comp = asChild ? Root : "h2";
|
|
return (
|
|
<Comp
|
|
className={cn(
|
|
"text-lg sm:text-xl md:text-2xl lg:text-3xl font-medium leading-[32px] md:leading-[48px] tracking-[-0.4px]",
|
|
className,
|
|
)}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|