Skip to content

USP bar

Three or four short promises in a row, usually just below the site header. On small screens they stack, or with scroll they sit in a swipeable row that shows one promise at a time and steps along every few seconds.

  • Static HTML first
  • Accessible by default
  • One file per piece
  • Every piece documented
  • items: list of { icon, label, href? }. The bar shows the first columns items.
  • columns: 3, 4 (default)
  • surface: light, alternate (default), brand, dark
  • density: compact (default, a slim strip), comfortable
  • scroll: on small screens, one promise per view in a swipeable row that advances on its own (paused on hover or focus, and off under reduced motion). Without it the items stack.
  • label: accessible name for the band (default “Highlights”)
<UspBar
items={[
{ icon: "zap", label: "Static HTML first" },
{ icon: "shield-check", label: "Accessible by default" },
{ icon: "layers", label: "One file per piece" },
{ icon: "book-open", label: "Every piece documented" },
]}
/>
columns="3" surface="dark" scroll
  • Static HTML first
  • Accessible by default
  • One file per piece
surface="brand" density="comfortable"
  • Static HTML first
  • Accessible by default
  • One file per piece
  • Every piece documented
surface="light"
  • Static HTML first
  • Accessible by default
  • One file per piece
  • Every piece documented