Dropdown menu
A navigation bar with dropdown submenus that close with the Escape key, an outside click or when focus leaves the menu.
- Tailwind
- React
- CSS
- WordPress
Description
Each submenu follows the disclosure pattern recommended for site navigation: a button with aria-expanded and a plain list of links, with no menu role to confuse screen readers. Escape returns focus to the button. On mobile, the panel spans the full width of the bar.
Code
Loading the code…
The code of this component in
Archive contents
menu-deroulant-html-tailwind.zip3 files · 4 Ko
- index.html10 Ko
- README.md2 Ko
- LICENSE.md1 Ko
Tags
Updated on December 2, 2026.
Reviews
No reviews yet.
In the same spirit

A slim bar at the top of the page with a message, a link and a close button; once closed, it stays hidden for the period you choose.
- Tailwind
- React
- CSS
- WordPress

A sticky sidebar table of contents for blog posts: it highlights the section being read, shows the reading time left and folds into a list under the title on mobile.
- Tailwind
- React
- CSS
- WordPress

A column of dots on the side of the page that follows the section being read and lets visitors jump to it, with a label on hover and focus.
- Tailwind
- React
- CSS
- WordPress

Step indicator
FreeAn order step indicator: finished steps clickable to go back, the current step announced, upcoming steps locked.
- Tailwind
- React
- CSS
- WordPress