Skip to content

The only tool you need to know what is happening and how to fix it.

371 B
Raw Blame
import { cn } from "@/lib/utils";

type Props = {
  as: "h1" | "h2" | "h3";
  children: React.ReactNode;
  className?: string;
};

export function GradientHeading({ as: Tag, children, className }: Props) {
  return <Tag className={cn(className)}>{children}</Tag>;
}

export function Gradient({ children }: { children: React.ReactNode }) {
  return <em>{children}</em>;
}