Get started
Zero dependencies · Astro 7.x

astro-dynamic-header

A responsive, typed header component for Astro projects. Floating and fullscreen layouts, multi-level dropdowns, dark-mode support — all with inline SVG icons and no CDN required.

View on GitHubnpm package
01

Floating & Fullscreen

Switch between a centered rounded header and a full-width edge-to-edge layout with a single prop.

02

Dark Mode Ready

Detects the .dark class on <html> automatically, or force a theme with preset.

03

3-Level Dropdowns

Supports top-level, secondary, and tertiary menu items — both on desktop hover and mobile accordion.

04

Zero External Icons

Arrow icons are inline SVG — no CDN script, no extra network request, no flash of unstyled icons.

05

Full TypeScript

All props and config objects are fully typed. Import types directly for IntelliSense and compile-time safety.

06

Slot Support

Add any content (buttons, search, badges) to the actions slot — shown in both header and mobile panel.

Get started in seconds

npm i @sofidevo/astro-dynamic-header