MCPcopy Create free account
hub / github.com/IABTechLab/uid2docs / SectionHeader

Function SectionHeader

src/components/SectionHeader/index.tsx:12–42  ·  view source on GitHub ↗
({
  heading,
  subheading,
  eyebrow,
  extraClass,
  jaHeading,
}: SectionHeaderProps)

Source from the content-addressed store, hash-verified

10 jaHeading?: string;
11};
12export default function SectionHeader({
13 heading,
14 subheading,
15 eyebrow,
16 extraClass,
17 jaHeading,
18}: SectionHeaderProps): JSX.Element {
19 return (
20 <header
21 className={clsx([
22 "row",
23 styles.sectionHeader,
24 extraClass ? extraClass : null,
25 ])}
26 >
27 {eyebrow && (
28 <p className={clsx("type-zeta col col--8 eyebrow", styles.eyebrow)}>
29 {eyebrow}
30 </p>
31 )}
32 <h2 className={clsx("type-beta col col--8")}>
33 {heading}{" "}
34 {jaHeading && <span className={styles.jaHeading}>{jaHeading}</span>}
35 </h2>
36
37 <p className={clsx("type-paragraph-large col col--4", styles.copy)}>
38 {subheading}
39 </p>
40 </header>
41 );
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected