Function freya::prelude::MenuItem

pub fn MenuItem(__props: MenuItemProps) -> Option<VNode>
Expand description

MenuItem component.

§Styling

Inherits the MenuItemTheme theme.

§Props

For details, see the props struct definition.

  • 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.