Dropdown menu

A dropdown menu with animated item selection.

0:00 / 0:01

Customize

1
70

Installation

pnpm odori add component dropdown-menu

Edit the source in videos/components/dropdown-menu/. Use odori diff to compare upstream changes and odori update to apply updates.

Timing contract

Use these durations and content limits when composing a scene. Run odori test to check your video.

Family
Interface
Recommended duration
150 frames · 5s
Minimum duration
75 frames · 2.5s
Entrance
14 frames
Exit
10 frames
Reduced motion
menu shown open, no walk
Requires
sans font
Content limits
trigger ≤ 24

Props

PropTypeDefaultRequired
triggerThe control the menu hangs from.string"Export"—
itemsItems in the menu. A leading "-" draws a separator above it.string[]["MP4 video"—
chosenWhich item the pointer lands on, zero based.number1—
openAtFrame the menu opens.number22—
chooseAtFrame the choice is made.number70—

Related components

All components