Files
fristydev/components/section-heading.tsx
T
fristy ad943fff8c
Build & Push / Lint & Build (push) Successful in 1m15s
Build & Push / Build & Push Image (push) Successful in 52s
Initial commit: fristy.net personal site
2026-09-10 04:59:12 +03:00

28 lines
712 B
TypeScript

import type { ReactNode } from "react";
export function SectionHeading({
kicker,
title,
subtitle,
action,
}: {
kicker: string;
title: string;
subtitle?: string;
action?: ReactNode;
}) {
return (
<div className="mb-8">
<p className="font-mono text-sm text-blurple-soft">
{"// "}
{kicker}
</p>
<div className="mt-1 flex flex-wrap items-end justify-between gap-3">
<h2 className="text-3xl font-bold tracking-tight">{title}</h2>
{action}
</div>
{subtitle ? <p className="mt-2 max-w-xl text-zinc-400">{subtitle}</p> : null}
</div>
);
}