Atoms / Section head

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";
/01 → Default

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>
  );
}
/02 → With meta
6 questions

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
PropTypeDefaultDescription
indexstring—The coordinate, /0.1, in the pixel face.
titlestring | string[]—The title, one string per line.
titleAs"h1" | "h2""h2"h1 when it opens the page.
leadReactNode—One or two sentences under the title.
metaReactNode—A mono note right of the coordinate.
classNamestring—Extra classes.