Section head
The head of a marketing section: its coordinate in ember, the pixel title, a lead. Sits on the page's rail (fg-rail).
import { SectionHead } from "@forgeron/ui";Pick. Shape.
Ship.
From a tool that already works to a tool that fits your team.
import { SectionHead } from "@forgeron/ui";
export default function Default() {
return (
<div className="fg-rail">
<SectionHead
index="/0.1"
title={["Pick. Shape.", "Ship."]}
lead="From a tool that already works to a tool that fits your team."
/>
</div>
);
}Questions,
answered.
import { SectionHead } from "@forgeron/ui";
// A note on the right of the coordinate, and no lead.
export default function WithMeta() {
return (
<div className="fg-rail">
<SectionHead index="/0.8" title={["Questions,", "answered."]} meta="6 questions" />
</div>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
index | string | — | The coordinate, /0.1, in the pixel face. |
title | string | string[] | — | The title, one string per line. |
titleAs | "h1" | "h2" | "h2" | h1 when it opens the page. |
lead | ReactNode | — | One or two sentences under the title. |
meta | ReactNode | — | A mono note right of the coordinate. |
className | string | — | Extra classes. |