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

19 lines
428 B
TypeScript

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