mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-14 10:34:06 +02:00
26 lines
601 B
TypeScript
26 lines
601 B
TypeScript
import type { ReactNode } from "react";
|
|
|
|
/** Eyebrow + title + lead heading wrapper shared by every docs content pane. */
|
|
export function DocsSection({
|
|
id,
|
|
eyebrow,
|
|
title,
|
|
lead,
|
|
children,
|
|
}: {
|
|
id: string;
|
|
eyebrow: string;
|
|
title: string;
|
|
lead?: string;
|
|
children: ReactNode;
|
|
}) {
|
|
return (
|
|
<section id={id} className="portal-docs__section">
|
|
<div className="portal-docs__section-eyebrow">{eyebrow}</div>
|
|
<h1 className="portal-docs__section-title">{title}</h1>
|
|
{lead && <p className="portal-docs__section-lead">{lead}</p>}
|
|
{children}
|
|
</section>
|
|
);
|
|
}
|