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

19 lines
401 B
TypeScript

import { cn } from "@lib/utils";
import { Root } from "@radix-ui/react-slot";
export function Label1Medium({
className,
asChild,
...props
}: React.ComponentProps<"p"> & { asChild?: boolean }) {
const Comp = asChild ? Root : "p";
return (
<Comp
className={cn(
"text-[0.875rem] md:text-[1rem] font-medium leading-[1.5rem] tracking-[-0.4px]",
className,
)}
{...props}
/>
);
}