Navigation Menubar
Using Menubar, Menu, and Portal to create an accessible, tabbable navigation menu widget with links and menu buttons that expand on hover and focus.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
import "./style.css";export default function Example() {return (<nav aria-label="Example" className="nav">href="#/services"label="Services"placement="bottom-start">href="#/webdev"label="Web Development"description="Professional web development services"/>href="#/mobiledev"label="Mobile Development"description="High-quality mobile application development"/>href="#/blog/tech"label="Tech"description="Latest technology news and insights"/>href="#/business"label="Business"description="Business trends and market analysis"/>href="#/blog/archives"label="Archives"description="Access past blog articles"/>href="#/aboutus"label="About Us"description="Learn more about our company"/>href="#/hr"label="HR"description="Jobs and career at our company"/>href="#/finance"label="Finance"description="Financial and investor information"/></nav>);}import "./style.css";export default function Example() {return (<nav aria-label="Example" className="nav">href="#/services"label="Services"placement="bottom-start">href="#/webdev"label="Web Development"description="Professional web development services"/>href="#/mobiledev"label="Mobile Development"description="High-quality mobile application development"/>href="#/blog/tech"label="Tech"description="Latest technology news and insights"/>href="#/business"label="Business"description="Business trends and market analysis"/>href="#/blog/archives"label="Archives"description="Access past blog articles"/>href="#/aboutus"label="About Us"description="Learn more about our company"/>href="#/hr"label="HR"description="Jobs and career at our company"/>href="#/finance"label="Finance"description="Financial and investor information"/></nav>);}
Related examples
SubmenuRendering nested Menu components to create a dropdown menu with submenus that open when hovering over the parent menu item.
Menu with Framer MotionAbstracting Menu into a reusable dropdown menu component that uses Framer Motion to create smooth initial and exit animations.
Sliding MenuRendering nested Menu components to create submenus that slide in and out using CSS Scroll Snap.