Oddmash UI
All components

Site Layout

Compose neutral headers, footers and navigation landmarks.

Usage

Combine SiteHeader or SiteFooter with their Inner wrapper and SiteNav. Branding, responsive navigation choices and sticky behavior stay with the product.

Accessibility

Keep native header, footer and nav semantics. Name each navigation landmark when there is more than one, and mark the current link with aria-current.

PropertyTypeDefault
childrenReactNodeNone
aria-label (SiteNav)stringNone
classNamestringNone
<>
  <SiteHeader>
    <SiteHeaderInner>
      <strong>Oddmash</strong>
      <SiteNav aria-label="Header navigation example">
        <a href="#/site-layout" aria-current="page">Docs</a>
        <a href="#/site-layout">Examples</a>
      </SiteNav>
    </SiteHeaderInner>
  </SiteHeader>
  <SiteFooter>
    <SiteFooterInner>
      <span>Open source</span>
      <SiteNav aria-label="Footer navigation example">
        <a href="#/site-layout">Docs</a>
      </SiteNav>
    </SiteFooterInner>
  </SiteFooter>
</>

Interactive documentation