Navigation Bar 07
Responsive navigation that transitions into an accessible sidebar drawer on smaller screens.
Requirements
HTML, CSS, JavaScript
Dependencies
None
Usage
Copy index.html, styles.css and script.js into your project.
About Navigation Bar 07
Navigation Bar 07 is a navigation bar component in the Navigation Bar Sections collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 18, 2026.
- navigation bar
- navbar
- sidebar
- drawer
- header
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: role dialog; aria-label, aria-expanded, aria-controls, aria-modal.
- HTML elements used: header, nav, button, img, svg.
- Keyboard keys handled: Escape, Tab.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive CSS breakpoints at 640px, 1024px.
React + TypeScript + Tailwind CSS
3 files: NavigationBar07.jsx, NavigationBar07.types.ts, NavigationBar07.tailwind.css
- Typed data shapes: NavItem, DrawerSection.
- Uses React hooks: useEffect, useRef, useState.
- ARIA in the markup: role dialog; aria-label, aria-expanded, aria-controls, aria-modal.
- HTML elements used: header, nav, button, svg.
- Keyboard keys handled: Escape, Home, Tab.
- Includes a prefers-reduced-motion rule for its animation.
- Responsive Tailwind breakpoints used: sm, lg.