Atoms / Section band

Section band

The hatched band between two sections, /0.1 → /0.2 and the next one's name. It takes the rule of the block above.

import { SectionBand } from "@forgeron/ui";
/01 → Default
/0.1 → /0.2[ Under the hood ]
import { SectionBand } from "@forgeron/ui";

export default function Default() {
  return <SectionBand from="/0.1" to="/0.2" label="Under the hood" />;
}
/02 → On the rail
A card with corner brackets
/0.2 → /0.3[ Resources ]
import { SectionBand } from "@forgeron/ui";

// The page's column: fg-rail rules both sides; cards take fg-ticks, drawings fg-dots.
export default function OnTheRail() {
  return (
    <div className="fg-rail">
      <div className="fg-ticks" style={{ padding: 24 }}>
        A card with corner brackets
      </div>
      <SectionBand className="fg-rail" from="/0.2" to="/0.3" label="Resources" />
      <div className="fg-dots" style={{ height: 120 }} />
    </div>
  );
}
API → Props
PropTypeDefaultDescription
fromstring—The coordinate of the section above.
tostring—The coordinate of the section below.
labelstring—What comes next, shown in brackets.
classNamestring—fg-rail to sit on the page's rail. Cards take fg-ticks (corner brackets), drawings fg-dots.