react-components/blog/post-title.tsx

14 lines
315 B
TypeScript
Raw Permalink Normal View History

2024-10-30 18:28:41 +01:00
import { ReactNode } from "react";
type Props = {
children?: ReactNode;
};
export function PostTitle({ children }: Props) {
return (
<h1 className="text-5xl md:text-7xl lg:text-8xl font-bold tracking-tighter leading-tight md:leading-none mb-12 text-center md:text-left">
{children}
</h1>
);
}