> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gavai.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Hero

> Banner section with headline, subhead, and optional CTA — what you reach for at the top of a marketing page.

export const Def = ({term, type, defaultValue, required, children}) => <>
    <dt className="gv-def-list__term">
      <span className="gv-def-list__name">{term}</span>
      {type && <span className="gv-def-list__type">{type}</span>}
      {required && <span className="gv-def-list__required">required</span>}
      {defaultValue !== undefined && <span className="gv-def-list__default">
          default <code>{defaultValue}</code>
        </span>}
    </dt>
    <dd className="gv-def-list__description">{children}</dd>
  </>;

export const DefList = ({children}) => <dl className="gv-def-list">{children}</dl>;

export const BrandCard = ({eyebrow, title, href, icon, badge, cta, featured = false, horizontal = false, children}) => {
  const classes = ["gv-card", featured && "gv-card--featured", horizontal && "gv-card--horizontal"].filter(Boolean).join(" ");
  const inner = <>
      {icon && <span className="gv-card__icon" aria-hidden="true">
          <Icon icon={icon} />
        </span>}
      <div className="gv-card__main">
        {(eyebrow || badge) && <div className="gv-card__meta">
            {eyebrow && <Eyebrow label={eyebrow} tone="muted" />}
            {badge && <span className="gv-card__badge">{badge}</span>}
          </div>}
        <h3 className="gv-card__title">{title}</h3>
        {children && <div className="gv-card__body">{children}</div>}
        {cta && <span className="gv-card__cta">
            {cta}
            <svg className="gv-card__cta-arrow" viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
              <line x1="7" y1="17" x2="17" y2="7" />
              <polyline points="7 7 17 7 17 17" />
            </svg>
          </span>}
      </div>
    </>;
  return href ? <a className={classes} href={href}>
      {inner}
    </a> : <div className={classes}>{inner}</div>;
};

export const FeatureTable = ({columns, rows, featuredRow, caption, variant}) => <div className={`gv-feature-table ${variant ? `gv-feature-table--${variant}` : ""}`}>
    <table>
      {caption && <caption className="gv-feature-table__caption">{caption}</caption>}
      <thead>
        <tr>
          {columns.map(col => <th key={col.key} scope="col">
              <span className="gv-feature-table__header">{col.label}</span>
            </th>)}
        </tr>
      </thead>
      <tbody>
        {rows.map((row, i) => {
  const rowClass = [i === featuredRow ? "gv-feature-table__row--featured" : "", row.chosen ? "gv-feature-table__row--chosen" : ""].filter(Boolean).join(" ");
  return <tr key={i} className={rowClass}>
              {columns.map(col => {
    const v = row[col.key];
    if (variant === "tradeoff" && Array.isArray(v)) {
      const pill = col.key === "pros" ? "gv-feature-table__pill--pro" : col.key === "cons" ? "gv-feature-table__pill--con" : "";
      return <td key={col.key}>
                      {v.map((item, j) => <span key={j} className={`gv-feature-table__pill ${pill}`}>{item}</span>)}
                    </td>;
    }
    return <td key={col.key}>{v}</td>;
  })}
            </tr>;
})}
      </tbody>
    </table>
  </div>;

export const Eyebrow = ({label, tone = "default"}) => <div className={`gv-eyebrow gv-eyebrow--${tone}`}>
    <span className="gv-eyebrow__bar" aria-hidden="true" />
    <span className="gv-eyebrow__label">{label}</span>
  </div>;

<Eyebrow label="BLOCK" />

`Hero` renders a large banner with a headline, an optional subheading, an optional call-to-action button, and an optional ambient glyph drawn from the workspace theme. It is almost always the first block inside a NavShell's `children` array on marketing pages, but you can also drop a Hero partway down a long page as an anchor for a new section.

## Example

```json hero.json theme={null}
{
  "block": "Hero",
  "props": {
    "headline": "Welcome to Acme",
    "subheading": "The best widgets in the business.",
    "cta_label": "Sign up",
    "cta_href": "/signup",
    "ambient_glyph": true
  }
}
```

## Props

<DefList>
  <Def term="headline" type="string" required>
    Primary heading text — the largest typographic element in the section.
  </Def>

  <Def term="subheading" type="string">
    Supporting text displayed below the headline at a smaller weight.
  </Def>

  <Def term="cta_label" type="string">
    Button label. Must be set together with `cta_href`; omit both to render the Hero without a CTA.
  </Def>

  <Def term="cta_href" type="string (URL or path)">
    Destination for the CTA button. Must be set together with `cta_label`.
  </Def>

  <Def term="ambient_glyph" type="boolean" defaultValue="false">
    When `true`, renders a decorative background glyph drawn from the workspace theme tokens.
  </Def>
</DefList>

## Patterns

**Top-of-page banner.** Hero is the first child of NavShell. Set `ambient_glyph: true` to pick up the workspace brand mark automatically and anchor the page's visual identity.

**Mid-page anchor.** Drop a Hero block mid-tree to introduce a new content section — use a shorter `headline`, omit `ambient_glyph`, and skip the CTA so it doesn't compete with the top-of-page banner.

**No-CTA variant.** Omit both `cta_label` and `cta_href` when the Hero is purely introductory and conversion happens further down the page in a dedicated Cta block.

## Common props

In addition to the Hero-specific props, every block accepts `id`, `class_overrides`, `visible_if`, and `analytics_event`. See [common props on the PageBlocks overview](/pageblocks/overview#common-props).

## Where to go next

<Columns cols={2}>
  <BrandCard eyebrow="BLOCK" title="FeaturesGrid" href="/pageblocks/blocks/features-grid">
    Add a feature grid below the Hero to communicate product capabilities.
  </BrandCard>

  <BrandCard eyebrow="BLOCK" title="Cta" href="/pageblocks/blocks/cta">
    Add a dedicated conversion band further down the page.
  </BrandCard>
</Columns>
