Menu Item
Overview
Menu Item is an item inside a menu bar or a submenu control. Menu Item represents a command a user can access via a popup menu. This includes context menus as well as menus associated with a menu button.
Please refer to this for more information: https://mui.com/material-ui/api/menu-item/.
Import
import { MenuItem } from '@mui/material';
The above source will be imported automatically after dragging and dropping the Basic Component to the UI Preview Panel.
Property
Property:
Name | Default | Description |
Id-name | Placeholder: <id-name> | The Id-name of the created component. |
State | State: Normal | The State of the created Component. |
Margin and Padding | Size Unit: Px | The component Margin and Padding with many selectable Size Units. |
Size | Size Unit: Px | The component Size includes Width and Height with many selectable Size Units. |
Layout | Position: None Size Unit: Px | The component Layout includes Position and Top - Right - Bottom - Left with many selectable Size Units. |
Text | Text: Menu Item Font-family: None Size Unit: Px Font-weight: None Text align: Left | The component Text includes Text, Font-family, Font-size, Font-weight, Size Unit, Font-color, Text-align. |
General | Disabled: False Visibility: None Opacity: 100% | The component General includes Disabled, Visibility, Opacity, and Background. |
Advanced Style | The component Advanced Style includes Classname and Inline Style addition. |
Code Sample:
<MenuItem
sx={{':focus': {
'margin': '15px 20px',
'padding': '15px 15px 15px 20px',},}}>Menu Item
</MenuItem>