Components
← All components

Dropdown

stimeo--dropdown

A disclosure toggled by a button click. Manages ARIA state, keyboard, and outside-click.

  • Disclosure

The stimeo--dropdown controller is a disclosure pattern that manages the open/closed state of a trigger button and a menu region. It toggles aria-expanded and the menu's hidden attribute. Pressing Esc closes the menu and returns focus to the trigger; clicking outside also closes it. The look (CSS) is owned by this Playground — the library provides behavior only.

running

Keyboard

KeyAction
Enter / Space Toggle the menu while the trigger is focused (native button).
Esc Close the menu and return focus to the trigger.