Hover Dropdown

A dropdown menu that opens automatically when the user hovers over the trigger.

Trigger on Hover

Set the trigger prop to "hover" to enable open-on-hover behavior. Includes a small delay before closing to prevent accidental closures when moving the mouse.

1import {
2 Dropdown,
3 DropdownTrigger,

Bounce Animation

Use animation="bounce" for a playful, physics-based opening animation. Perfect for more casual or creative interfaces.

1// 1. Add keyframes to globals.css
2@keyframes dropdown-bounce {
3 0% { transform: scaleY(0.6); opacity: 0; }

Staggered Entrance

Use animation="staggered" to make menu items slide in one by one. This adds a premium feel to larger menus.

1// 1. Add keyframes to CSS
2@keyframes menu-item-slide-in {
3 0% { opacity: 0; transform: translateX(-8px); }

Installation

npx zeroui@latest add dropdown-hover

Props

Props

nametypedefaultdescription
trigger"click" | "hover""click"Determines the event that opens the dropdown.
animation"default" | "bounce" | "staggered""default"The animation style for the dropdown opening. 'staggered' animates items individually.