Skip to main content
ALEXY LINK

Header 07

A search-driven header whose trigger morphs into a live, filterable command-style search box.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

About Header 07

Header 07 is a header section in the Header Sections collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 25, 2026.

  • header
  • search
  • command palette
  • docs
  • keyboard shortcut
  • filter
  • cmd+k

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: aria-label, aria-expanded, aria-controls.
  • HTML elements used: header, nav, button, input, img, svg.
  • Keyboard keys handled: Escape.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive CSS breakpoints at 640px, 1024px.

React + TypeScript + Tailwind CSS

3 files: Header07.jsx, Header07.types.ts, Header07.tailwind.css

  • Typed data shapes: NavItem, SearchResultItem.
  • Uses React hooks: useEffect, useMemo, useRef, useState.
  • ARIA in the markup: role region; aria-label, aria-expanded, aria-controls.
  • HTML elements used: header, nav, ul, button, input, svg.
  • Keyboard keys handled: Escape.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm, lg.
View all Header Sections (10)