Function freya_components::MenuItem

source ·
pub fn MenuItem(_: MenuItemProps) -> Element
Expand description

§Styling

Inherits the MenuItemTheme theme.

§Props

For details, see the props struct definition.

  • children : Element

    Inner children for the MenuItem.

  • theme : Option<MenuItemThemeWith>

    Theme override for the MenuItem.

  • onclick : Option<EventHandler<Option<MouseEvent>>>

    Handler for the onclick event.

  • onmouseenter : Option<EventHandler<()>>

    Handler for the onmouseenter event.