Pular para o conteúdo

Menu

Este conteúdo não está disponível em sua língua ainda.

The Menu component is used to display a dropdown list of actions or options triggered by an anchor element such as a button.

  • Composable API: Uses anchor and items snippets for full flexibility.
  • Trigger-based: Opens via click or hover depending on configuration.
  • Action-ready items: Supports interactive menu actions with callbacks.
  • Flexible styling: Can adapt to different backgrounds and layouts.
Edit Print
Edit Print
Lorem ipsum dolor sit amet consectetur adipisicing elit
PropTypeDefaultDescription
idstringUnique identifier for the menu instance.
openOnHoverbooleanfalseIf true, opens the menu on hover instead of click.
isTranslucentbooleanfalseApplies a translucent background style to the menu.
PropTypeDefaultDescription
onclickfunctionCallback executed when the item is clicked.
childrennodeContent displayed inside the menu item.
  • Always provide a unique id for proper menu isolation.
  • Keep menu items short and action-oriented.
  • Avoid placing heavy UI inside Menu.Item.
  • Prefer clear verbs for actions (e.g. “Edit”, “Delete”, “Export”).
  • Use openOnHover only for non-critical actions to avoid accidental triggers.