p-stream/src/components/text/HeroTitle.tsx
mrjvs cec0744907 the start on a docs page + error pages
Co-authored-by: Jip Frijlink <JipFr@users.noreply.github.com>
Co-authored-by: William Oldham <github@binaryoverload.co.uk>
2023-10-23 23:06:24 +02:00

16 lines
320 B
TypeScript

export interface HeroTitleProps {
children?: React.ReactNode;
className?: string;
}
export function HeroTitle(props: HeroTitleProps) {
return (
<h1
className={`text-2xl font-bold text-white sm:text-3xl md:text-4xl ${
props.className ?? ""
}`}
>
{props.children}
</h1>
);
}