Vivid API

Menu

The Menu is an interactive element that appears in response to user actions. It typically presents a list of Menu Items (actions) relevant to the current context.

Open

The open attribute controls the open state.

Placement

The placement attribute controls the position of the Menu relative to its anchor element. See the API Reference for all possibile values.

When the menu anchor is placed close to the start/end of the viewport, placement of bottom or top will not present well due to lack of space.

In such cases - prefer using bottom-start or end instead.

Offset

Use the offset attribute to add a gap (in px) between the trigger element and the menu.