supermemory/packages/ui/text/heading/heading-h1-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 HeadingH1Medium({
className,
asChild,
...props
}: React.ComponentProps<"h1"> & { asChild?: boolean }) {
const Comp = asChild ? Root : "h1";
return (
<Comp
className={cn(
"text-sm sm:text-base md:text-lg lg:text-xl font-medium leading-[32px] tracking-[-0.4px]",
className,
)}
{...props}
/>
);
}