File size: 424 Bytes
1067b6f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { cn } from "@/lib/utils";
import { PropsWithChildren } from "react";
export const Text = ({
children,
appearance,
className,
}: PropsWithChildren<{
appearance?: "default" | "secondary";
className?: string;
}>) => {
return (
<p
className={cn(
"leading-7",
appearance === "secondary" && "text-muted-foreground",
className
)}
>
{children}
</p>
);
};
|