Function freya_components::MenuItem
source · pub fn MenuItem(__props: MenuItemProps) -> Element
Expand description
§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.