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

19 lines
414 B
TypeScript

import { cn } from "@lib/utils";
import { Root } from "@radix-ui/react-slot";
export function Title1Medium({
className,
asChild,
...props
}: React.ComponentProps<"h1"> & { asChild?: boolean }) {
const Comp = asChild ? Root : "h1";
return (
<Comp
className={cn(
"text-xl sm:text-2xl md:text-3xl lg:text-4xl font-medium leading-[70px] tracking-[-0.8px]",
className,
)}
{...props}
/>
);
}