Skip to content
On this page

Menu

A simple menu

Examples

Base

Show code

Class props

'Classes applied to the element'
How does the Class props inspector work?
Class propDescriptionPropsSuffixes
itemActiveClassClass of the active menu-item.
itemClassClass of the menu-item.
itemDisabledClassClass of the disabled menu-item.
itemIconTextClassClass of the icon of menu-item.
itemSubmenuClassClass of the menu-item when is a submenu.
itemWrapperClassClass of the root element of menu-item.
listClassClass of the menu-list.
listLabelClassClass of the menu-list label.
rootClassClass of the root element (menu).
html
<o-menu></o-menu>

Props

Prop nameDescriptionTypeValuesDefault
accordionboolean-true
activableboolean-true
overrideboolean-

Slots

NameDescriptionBindings
default
html
<o-menu-list></o-menu-list>

Props

Prop nameDescriptionTypeValuesDefault
ariaRolestring-
iconstring-
iconPackstring-
labelstring-
overrideboolean-
sizeIcon size, optionalstringsmall, medium, large

Slots

NameDescriptionBindings
label
default
html
<o-menu-item></o-menu-item>

Props

Prop nameDescriptionTypeValuesDefault
activeboolean-
animationstring-'slide'
ariaRolestring-''
disabledboolean-
expandedboolean-
iconstring-
iconPackstring-
labelstring-
overrideboolean-
sizeIcon size, optionalstringsmall, medium, large
tagstring | Component-'a'

Events

Event namePropertiesDescription
update:expanded
update:active

Slots

NameDescriptionBindings
label
default

Sass variables

Current theme ➜ Oruga Base

SASS VariableDefault
$menu-item-color$grey-dark
$menu-item-hover-color$black
$menu-item-hover-background-color$grey-light
$menu-item-active-color$primary-invert
$menu-item-active-background-color$primary
$menu-item-disabled-color$grey-light
$menu-list-border-left1px solid $primary
$menu-list-line-height1.25em
$menu-item-padding0.5em 0.75em
$menu-nested-list-margin0.75em
$menu-nested-list-padding-left0.75em
$menu-label-color$grey
$menu-label-font-size0.75em
$menu-label-spacing1em

See ➜ 📄 Full scss file

Current theme ➜ Oruga Full

SASS VariableDefault
$menu-item-color$grey-dark
$menu-item-hover-color$black
$menu-item-hover-background-color$grey-light
$menu-item-active-color$primary-invert
$menu-item-active-background-color$primary
$menu-item-disabled-color$grey-light
$menu-list-border-left1px solid $primary
$menu-list-line-height1.25em
$menu-item-padding0.5em 0.75em
$menu-nested-list-margin0.75em
$menu-nested-list-padding-left0.75em
$menu-label-color$grey
$menu-label-font-size0.75em
$menu-label-spacing1em

See ➜ 📄 Full scss file

Current theme ➜ Bulma

The theme does not have any custom variables for this component.

Current theme ➜ Bootstrap

SASS VariableDefault
$menu-label-bgtransparent
$menu-label-colorvar(--#{$prefix}body-color)
$menu-label-font-size0.75em
$menu-list-line-height1.25em
$menu-item-padding0.5em 0.75em
$menu-item-bgtransparent
$menu-item-colorvar(--#{$prefix}body-color)
$menu-item-active-bgvar(--#{$prefix}primary)
$menu-item-active-colorvar(--#{$prefix}white)
$menu-item-disabled-bgtransparent
$menu-item-disabled-colorvar(--#{$prefix}secondary)
$menu-icon-spacer0.5rem
$menu-submenu-border-left1px solid #445e00
$menu-submenu-padding-left0.75em
$menu-submenu-margin0.75em

See ➜ 📄 Full scss file

Released under the MIT License.